Override Controller
To override the controller, you can follow the following steps:
- Create a new controller by using below command.
php artisan make:controller ExampleController
- After the new controller is created, you can override the controller by registering the controller in the
config/badaso-linky-theme.php
file incontrollers
section. For example:
return [
...,
'controllers' => [
'ExampleController' => 'App\Http\Controllers\ExampleController',
],
];
Note: All controllers in the linky Theme are invoke controllers.