From fc8fba61909976f2986937c097c06cca2a6ef391 Mon Sep 17 00:00:00 2001 From: Jose Rosado Date: Mon, 14 Sep 2020 10:19:39 -0400 Subject: [PATCH] Update routes.stub Updated routes.stub for Laravel 8 compatibility. --- stubs/routes.stub | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/stubs/routes.stub b/stubs/routes.stub index 2f85fcc..2e5dfda 100644 --- a/stubs/routes.stub +++ b/stubs/routes.stub @@ -5,18 +5,18 @@ */ Route::group(['prefix' => 'teams', 'namespace' => 'Teamwork'], function() { - Route::get('/', 'TeamController@index')->name('teams.index'); - Route::get('create', 'TeamController@create')->name('teams.create'); - Route::post('teams', 'TeamController@store')->name('teams.store'); - Route::get('edit/{id}', 'TeamController@edit')->name('teams.edit'); - Route::put('edit/{id}', 'TeamController@update')->name('teams.update'); - Route::delete('destroy/{id}', 'TeamController@destroy')->name('teams.destroy'); - Route::get('switch/{id}', 'TeamController@switchTeam')->name('teams.switch'); + Route::get('/', [App\Http\Controllers\Teamwork\TeamController::class, 'index'])->name('teams.index'); + Route::get('create', [App\Http\Controllers\Teamwork\TeamController::class, 'create'])->name('teams.create'); + Route::post('teams', [App\Http\Controllers\Teamwork\TeamController::class, 'store'])->name('teams.store'); + Route::get('edit/{id}', [App\Http\Controllers\Teamwork\TeamController::class, 'edit'])->name('teams.edit'); + Route::put('edit/{id}', [App\Http\Controllers\Teamwork\TeamController::class, 'update'])->name('teams.update'); + Route::delete('destroy/{id}', [App\Http\Controllers\Teamwork\TeamController::class, 'destroy'])->name('teams.destroy'); + Route::get('switch/{id}', [App\Http\Controllers\Teamwork\TeamController::class, 'switchTeam'])->name('teams.switch'); - Route::get('members/{id}', 'TeamMemberController@show')->name('teams.members.show'); - Route::get('members/resend/{invite_id}', 'TeamMemberController@resendInvite')->name('teams.members.resend_invite'); - Route::post('members/{id}', 'TeamMemberController@invite')->name('teams.members.invite'); - Route::delete('members/{id}/{user_id}', 'TeamMemberController@destroy')->name('teams.members.destroy'); + Route::get('members/{id}', [App\Http\Controllers\Teamwork\TeamMemberController::class, 'show'])->name('teams.members.show'); + Route::get('members/resend/{invite_id}', [App\Http\Controllers\Teamwork\TeamMemberController::class, 'resendInvite'])->name('teams.members.resend_invite'); + Route::post('members/{id}', [App\Http\Controllers\Teamwork\TeamMemberController::class, 'invite'])->name('teams.members.invite'); + Route::delete('members/{id}/{user_id}', [App\Http\Controllers\Teamwork\TeamMemberController::class, 'destroy'])->name('teams.members.destroy'); - Route::get('accept/{token}', 'AuthController@acceptInvite')->name('teams.accept_invite'); + Route::get('accept/{token}', [App\Http\Controllers\Teamwork\AuthController::class, 'acceptInvite'])->name('teams.accept_invite'); });