1.
abort(404, 'Unauthorized action.');
An error will be thrown, showing 404.blade.php
view file. How should I output Unauthorized action.
?
2.
How to get the name of the currently executed controller and method?
Use echo Route::currentRouteAction();
# in the controller
3.
Route::controllers(['test' => 'TestController']);
4.
<?php echo url('/login');?>
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
过去多啦不再A梦2017-05-16 16:57:16
Please see http://laravel.so/tricks/9024b7536d8275d9eba8b4b945840c03
Please see http://overtrue.me/articles/2015/03/get-current-controller-of-laravel.html
is
asset()
Helper function
巴扎黑2017-05-16 16:57:16
The 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