Of course it is possible
You can add as many methods as you want in each controller, Larval by default adds a curd to the resource controller, methods and routers, and you need to do the following to create your own modular method in a controller.
1) First add your method publicly in the corresponding controller file
public function echoUser($id)
{
return $id;
}
2) In the web file of the routers folder, write and name the router, for example:
Route :: get ('admin / echoUser / {id}', 'UserController @ echoUser') -> name ('admin.echoUser');
Note:After adding this router, you can see it in the list of registered larval routers with the following command
php artisan router: list
3) Now you can use in the blade template file to access this method and pass id to method easily
<a class="btn btn-warning btn-sm" href="{{route('admin.echoUser', $user-> id)}} "> Show </a>
OR
<form method="get" action="{{route('admin.echoUser' , $user->id)}}">
@csrf
<button type="submit" class="btn btn-primary btn-sm">show</button>
</form>