From 9fc18e15fbc9ce4c9bddbc48642c456cd8886cdf Mon Sep 17 00:00:00 2001 From: Milan Lesichkov Date: Thu, 26 Sep 2024 06:59:21 +0100 Subject: [PATCH] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b4d2d76..93bfaec 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,10 @@ AdvancedRoute::controller('/{YOUR PATH}', '{YOUR CONTROLLER FULL NAME}'); ```php Route::group(['prefix' => '/', 'middleware' => []], function () { - AdvancedRoute::controller('/auth', 'AuthController'); - AdvancedRoute::controller('/cms', 'CmsController'); - AdvancedRoute::controller('/shop', 'ShopController'); - Route::any('/', 'WebsiteController@anyIndex'); + AdvancedRoute::controller('/auth', '\\' . \App\Http\Controllers\AuthController); + AdvancedRoute::controller('/cms', '\\' . \App\Http\Controllers\CmsController); + AdvancedRoute::controller('/shop', '\\' . \App\Http\Controllers\ShopController); + Route::any('/', '\\' . \App\Http\Controllers\WebsiteController@anyIndex); }); ``` @@ -101,9 +101,9 @@ Route::group(['prefix' => '/', 'middleware' => []], function () { ```php AdvancedRoute::controllers([ - '/auth' => 'AuthController', - '/cms' => 'CmsController', - '/shop' => 'ShopController', + '/auth' => '\\' . \App\Http\Controllers\AuthController, + '/cms' => '\\' . \App\Http\Controllers\CmsController, + '/shop' => '\\' . \App\Http\Controllers\ShopController, ]); ```