Blast not working after removing laravelcollective package
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Gael Yvert added bug essential labels
- Gael Yvert assigned to @gyvert
assigned to @gyvert
- Author Owner
Forms are not recognized. If I re-install
laravelcollective/html
by typing:composer require laravelcollective/html
then it works again.
However, this package is not maintained anymore, and should be replaced by
spatie/laravel-html
.So, I type:
composer remove laravelcollective/html composer require spatie/laravel-html
But I still get
class "Form" not found
. More doc is available here on how to configure spatie/laravel-html - Author Owner
And here is a non-free tool to migrate the code calling forms by calling Html directly
Apparently, changes are like:
{{--- LaravelCollective ---}} {!! Form::label('Name', 'name_input') !!} {!! Form::text('name', null, ['placeholder' => 'Enter your name', 'class' => 'mt-2 p-4', 'id' => 'name_input']) !!}} {{--- LaravelCollective ---}} {{ html()->label( 'name_input', 'Name') }} {{ html()->text('name')->placeholder('Enter your name')->class('mt-2 p-4')->id('name_input']) }}
Edited by Gael Yvert - Gael Yvert changed title from Blast not working after upgrade to Laravel 9 to Blast not working after removing laravelcollective package
changed title from Blast not working after upgrade to Laravel 9 to Blast not working after removing laravelcollective package
- Gael Yvert mentioned in commit f0441e0c
mentioned in commit f0441e0c
- Author Owner
OK. Fixed by doing edits in
resources/views/blast/welcome.blade.php
. - Gael Yvert closed
closed
Please register or sign in to reply