Closed itsnotyoutoday closed 2 years ago
Well.. I found one thing out.. It had something to do with php8, i switch the site to 7.4 and the main page loads fine.... not sure why
Hi, just check out this article solution, it's a improve for Laravel 8
Hope this help you
Change Line 28 of app/Base/Sluggable.php to:
#[ArrayShape(['slug' => "array"])] public function sluggable(): array
Then retry php artisan cms:initialize --seed
This worked for me on my local and remote machines (using php 8 and laravel 8)
thanks for reporting @itsnotyoutoday, and sorry for the reply. just committed the fix, thanks to @gingadevs and @melaniecarr23.
After I set everything up I get this error.
Symfony\Component\ErrorHandler\Error\FatalError Declaration of App\Base\SluggableModel::sluggable() must be compatible with Cviebrock\EloquentSluggable\Sluggable::sluggable(): array