Skip to content

Commit

Permalink
Update controllers.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Sep 16, 2024
1 parent d5c68f7 commit e9301bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/ru/docs/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ class CustomOrchidController extends Controller
чтобы на него распространялись общие правила, такие как авторизация.

```php
Route::get('custom', [\App\Http\Controllers\CustomOrchidController::class, 'index']);
use App\Http\Controllers\CustomOrchidController;

Route::get('custom', [CustomOrchidController::class, 'index']);
```

0 comments on commit e9301bc

Please sign in to comment.