Closed snappyio closed 3 years ago
Hi @graham-ch I needed to make a little adjustment on the Food model because Vemto generates the plural as 'foods', but Laravel considers the plural as 'food', so the migrations don't run. But after fixing it, the application is running well:
Thanks Tiago.
FYI I had the same problem with another schema.
users, folders, videos
Would that be the same issue/fix do you think?
Hi @graham-ch I'll check with this other schema
Thanks, it was exactly the same structure:
A user hasMany folders, a folder hasMany videos.
It worked without modifications :thinking:
I'll try to understand what is happening in your case.
@graham-ch what PHP version are you using?
7.3.16
This appeared to fix:
Edit the app/Http/Livewire/FolderVideosDetail.php
Line 17/18, change:
public Folder $folder public Video $video
to
public $folder public $video
@graham-ch yes, the problem is the PHP version... the class property types were implemented on PHP 7.4... please upgrade your PHP and the problem will be gone.
Cheers
Describe the bug On master detail pages the show (master) page does not show the detail records, the edit (master) page results in an error
ParseError syntax error, unexpected 'Plate' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) (View: /Users/G/code/master_detail/resources/views/app/plates/edit.blade.php)
To Reproduce Create a very simple schema. Consisting of 3 models, users, plates, foods. The plate and food models have 1 field each (title).
A user hasMany plates, a plate hasMany foods.
Expected behaviour
No errors.
Screenshots
Desktop (please complete the following information):
Additional context Everything left at default to test the error other than disabling turbolinks.