Exemple de middleware Laravel Controller

public function __construct()
{
  /** middleware could be single string
  * or array like this ['auth', 'admin']
  * or clouser
  */
  $this->middleware('middleware')
}
Dev Arman