Middleware in Laravel 11

Поделиться
HTML-код
  • Опубликовано: 23 сен 2024
  • In this tutorial, you will learn how to use middleware in laravel 11 application. so, this tutorial covers creating, registering, and assigning middleware to a route and globally.
    #laravel #MiddlewareInLaravel #middleware

Комментарии • 9

  • @VladiBro-q4l
    @VladiBro-q4l 20 дней назад

    Without a single word has explained the topic. Very interesting format of the tutorial. And yes, i have found what i searched for. Thanks!

    • @BluebirdTech
      @BluebirdTech  19 дней назад

      I'm glad to hear that. :)
      Thank you so much!

    • @VladiBro-q4l
      @VladiBro-q4l 18 дней назад

      @@BluebirdTech I noticed you have auto update of the use of namespaces as soon as you mention class in your code , how ?

  • @nishatislam3495
    @nishatislam3495 2 дня назад

    nice!!!❤

  • @AliMalik-hs8yd
    @AliMalik-hs8yd 5 месяцев назад +2

    such a helpful tutorial.

  • @Pro-jy3gp
    @Pro-jy3gp 6 месяцев назад

    Came from Facebook ❤ love it
    How to log api of users

    • @BluebirdTech
      @BluebirdTech  6 месяцев назад

      // bootstrap/app.php
      $middleware->api(append:[
      \App\Http\Middleware\YourAPIMiddleware::class,
      ]);
      //YourAPIMiddleware
      Log::info('API Request from user: ' . auth()->user()->id);
      Log::info('Request URL: ' . $request->fullUrl());
      Log::info('Request Method: ' . $request->method());
      Log::info('Request Parameters: ' . json_encode($request->all()));

  • @Дмитрий-х4т7щ
    @Дмитрий-х4т7щ 5 месяцев назад

    ты крутой