How to share functions between controllers in Laravel

preview_player
Показать описание
This video demonstrates how you can share functions between Laravel controllers. This is achieved by writing Traits that contain the methods to be shared.
Since PHP is a since inheritance language and Laravel controllers implement "Controller" by default, the best way is to use traits share any functionality easily.
Please don't forget to like and subscribe.
Рекомендации по теме
Комментарии
Автор

We can also use helper function. It is also very easy

nilanjanchakraborty
join shbcf.ru