Skip to content

Error when using ViewField #970

@2kodes

Description

@2kodes

Describe the bug
In trying to use the ViewField ViewField::make('one')->view('platform::layouts.blank') i had the following error :
(Field must have the following attribute: view)

The function view() in ViewField tries to set an attribute $this->view but $view is not defined in the class
To Reproduce
Steps to reproduce the behavior:

  1. `ViewField::make('one')->view('platform::layouts.blank')
  2. Refresh page

Expected behavior
A field to be rendered

Desktop (please complete the following information):

  • OS: [Manjaro Linux 18.0.4]
  • Browser [chrome]
  • Version [ 76.0.3809.100]

Server (please complete the following information):

  • Platform Version: [6.1.4]
  • Laravel Version: [6.0.4]
  • PHP Version: [7.3.6]

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions