Open RobRover opened 2 years ago
This package is incompatible with laravel 9 at this time. Composer cant install it on laravel 9. So i thing you do something wrong when you was update your project and as a result - you has made comments broken.
这个包不支持laravel9
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