Skip to content

Spatie permission issues after upgrading to Laravel 9 #188

@RobRover

Description

@RobRover

Hello, I don't certainly know if this is an issue of laravelista/comments.
After upgrading to laravel 9 I could't create new comments since I was redirected to the login page of Jetstream. To fix the problem I had to move this routes (found in vendor/laravel/laravelista/comments/src/routes.php) to my web.php file:

Route::post('comments', Config::get('comments.controller') . '@store')->name('comments.store');
Route::delete('comments/{comment}', Config::get('comments.controller') . '@destroy')->name('comments.destroy');
Route::put('comments/{comment}', Config::get('comments.controller') . '@update')->name('comments.update');
Route::post('comments/{comment}', Config::get('comments.controller') . '@reply')->name('comments.reply');

Now is working correctly. Just to let you know. You can close the issue if is a problem of myself. Only thing I know is this wasn't happening after upgrade. Thanks for this awesome package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions