Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel controller middleware example

public function __construct()
{
  /** middleware could be single string
  * or array like this ['auth', 'admin']
  * or clouser
  */
  $this->middleware('middleware')
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #controller #middleware
ADD COMMENT
Topic
Name
3+6 =