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')
}
 
PREVIOUS NEXT
Tagged: #laravel #controller #middleware
ADD COMMENT
Topic
Name
9+9 =