Laravel 11 Middleware Authentication with Controller's method
What should I use in controller's constructor for authenticating my methods in laravel 11. <?php public function __construct(){ $this->middleware('auth:sanctum')->except(['index', 'show']); } ?> We used write this before laravel 11. Now what should we need to use instead of this? I…