1.
abort(404, 'Unauthorized action.');
An error will be thrown, showing404.blade.php
view file. How should I outputUnauthorized action.
?
2.
How to get the name of the currently executed controller and method?
Useecho Route::currentRouteAction();
# in the controller
3.
Route::controllers(['test' => 'TestController']);
4.
5.Where to put the custom function? See what is written in this article.
composer dump-autoload, maybe sometimes there is only FRP but no SSH permissions. What else? Any solution?
http://laravel.so/tricks/e81a15277236d35feb19ad5b86427bdc
Please see http://laravel.so/tricks/9024b7536d8275d9eba8b4b945840c03
Please see http://overtrue.me/articles/2015/03/get-current-controller-of-laravel.html
is
asset()
Helper functionThe upstairs looks nice
use Route
;Yeah
Upstairs
Finally, if you are interested, you can check out the series of videos I recently recorded on Laravel 5.1
https://laravist.com/series/laravel-5-basic