This specific content was written 12 years ago.
Please keep this in mind as it may be outdated and not adhering to best-practices.
Here are some tips you might find handy when you think you have done everything according to the tutorials!
In formrequests to authorise access only for registered/signed users we add
use Auth;
public function authorize()
{
if ( !Auth::check() )
return false;
return true;
}
Mar 17 2015
Laravel 5 TIPS For Beginners!
Here are some tips you might find handy when you think you have done everything according to the tutorials!
In formrequests to authorise access only for registered/signed users we add
use Auth; public function authorize() { if ( !Auth::check() ) return false; return true; }By Polyvios Damianakis • PHP 0 • Tags: laravel 5, tips