Controller
Controller
BASIC CONTROLLERS
To quickly generate a new controller, you may run the make:controller
Artisan command. By default, all of the controllers for your application
are stored in the app/Http/Controllers directory:
Route::get('/test',[MyController::class,'index']);
Route::get('/test2',[ResourceController::class,'index']);
PART – 1 STRING
DEFINE STRING INSIDE THE CONTROLLER
PART – 2 VIEW
DEFINE STRING INSIDE THE CONTROLLER
PART – 3 ARRAY & VARIABLE
DEFINE STRING INSIDE THE CONTROLLER