Laravel 8: Array to string conversion while trying to run php artisan serve

I have downloaded a project of Laravel and I wanted to run the project by typing php artisan serve but I get this error:

ErrorException

Array to string conversion

But now the problem is, I don’t know where this error is coming from and how can I debug!

Here is a capture of it:

capture

So would you just tell me from where I can start debugging and which part of project returns this error (models, controllers, migrations or etc)…

Web.php:

Route::get('/', function () {
    $threads = AppModelsThread::paginate(15);
    return view('welcome', compact('threads'));
});

Auth::routes();

Route::get('/home', [AppHttpControllersHomeController::class, 'index'])->name('home');

Route::get('/home', [AppHttpControllersHomeController::class, 'index'])->name('home');

Route::resource('/thread', AppHttpControllersThreadController::class);

Route::resource('/thread/mark-as-solution', [AppHttpControllersThreadController::class, 'markAsSolution'])->name('markAsSolution');

Route::resource('comment', AppHttpControllersCommentController::class,['only' => ['update','destroy']]);

Route::post('comment/create/{thread}', [AppHttpControllersCommentController::class, 'addThreadComment'])->name('threadcomment.store');

Route::post('reply/create/{comment}', [AppHttpControllersCommentController::class, 'addReplyComment'])->name('replycomment.store');

Route::post('comment/like', [AppHttpControllersLikeController::class, 'likeIt'])->name('likeIt');

Answer

Route::resource('/thread/mark-as-solution', [AppHttpControllersThreadController::class, 'markAsSolution'])->name('markAsSolution');

Here you should edit to get / post / put / patch / delete

Ex:

Route::get('/thread/mark-as-solution', [AppHttpControllersThreadController::class, 'markAsSolution'])->name('markAsSolution');