Lỗi call to undefined method illuminate view engines compilerengine năm 2024

class AnonymousComponent extends Component (View source)

Properties

static protected array $propertyCache

The cache of public property names, keyed by class.

from static protected array $methodCache

The cache of public method names, keyed by class.

from protected array $except

The properties / methods that should not be exposed to the component.

from string $componentName

The component alias name.

from ComponentAttributeBag $attributes

The component attributes.

from protected string $view

The component view.

protected array $data

The component data.

Methods

()

Get the view / view contents that represent the component.

()

Resolve the Blade view or view file that should be used when rendering the component.

array

()

Get the data that should be supplied to the view.

bool

(string $name)

Determine if the given property / method should be ignored.

$this

(string $name)

Set the component alias name.

$this

(array $attributes)

Set the extra attributes that the component should make available.

bool

()

Determine if the component should be rendered.

void

(string $view, array $data)

Create a new anonymous component instance.

Details

View|Htmlable|Closure|string*render*()

Get the view / view contents that represent the component.

View|Htmlable|Closure|string*resolveView*()

Resolve the Blade view or view file that should be used when rendering the component.

protected string*createBladeViewFromString*(Factory $factory, string $contents)

Create a Blade view with the raw component string content.

array*data*()

Get the data that should be supplied to the view.

Extract the public properties for the component.

Extract the public methods for the component.

protected mixed*createVariableFromMethod*(ReflectionMethod $method)

Create a callable variable from the given method.

protected InvokableComponentVariable createInvokableVariable(string $method)

Create an invokable, toStringable variable for the given component method.

protected bool*shouldIgnore*(string $name)

Determine if the given property / method should be ignored.

protected array*ignoredMethods*()

Get the methods that should be ignored.

$this*withName*(string $name)

Set the component alias name.

$this*withAttributes*(array $attributes)

Set the extra attributes that the component should make available.

`View|Htmlable|Closure|string*resolveView*()`0

Get a new attribute bag instance.

`View|Htmlable|Closure|string*resolveView*()`1

Determine if the component should be rendered.

`View|Htmlable|Closure|string*resolveView*()`2

Create a new anonymous component instance.