laravel auth in controller constructor code example Example: Laravel route not calling function of controller //in the terminal run composer dump-autoload