How and where to create your function and how to handle it?
Tell me, please, is it possible to create your individual functions (not using the controller. For example, laravel-function dd() ) in Laravel? If so, how and where you want to create and then refer to them? An example of what I want to do: I want to create a function that will show online if user is present or not. And call it where is the output of users or a specific user. If you have solve this task better, then please advise.