ascsoftw / tall_crud_example

Examples of Code Generated via tall-crud-generator Package
0 stars 1 forks source link

Parse Error #7

Closed Majidkadi closed 3 years ago

Majidkadi commented 3 years ago

Hello,

I've just installed tall_crud_example and when clicking on "Eager Load" menu, I get this error: (see attachement) parseerror

I get the same error when clicking on "Add Edit Form" menu. It looks like the problem is the brand variable.

Majidkadi commented 3 years ago

I found the problem. In the files "livewire.products.blade.php" and "livewire.eager-load.blade.php" there is a "?" extra character in: {{ $result->brand?->name}}

{{ $result->brand?->name}} All what I have to do is delete that extra character. {{ $result->brand->name}}
ascsoftw commented 3 years ago

Hi,

Its not an error. Thats the Null Safe Operator introduced in PHP 8.

Majidkadi commented 3 years ago

So how should I fix that?

It's okay I have read the doc.

I will update my PHP version

Thanks