Laravel Sanctum API for Admin and User Roles: Complete Setup Guide [HINDI]

Поделиться
HTML-код
  • Опубликовано: 22 сен 2024
  • Welcome to our comprehensive tutorial on setting up a Laravel Sanctum API with admin and user role management! In this video, we'll guide you through the process of configuring Laravel Sanctum to handle role-based authentication and authorization for your web application.
    In this tutorial, you will learn:
    How to install and set up Laravel Sanctum.
    How to create and manage admin and user roles.
    How to protect your routes and controllers using Sanctum middleware.
    Best practices for implementing role-based access control (RBAC) in Laravel.
    Tips for securing your API endpoints and ensuring robust authentication.
    Whether you're building a simple web application or a complex system with multiple user roles, this tutorial will provide you with the knowledge and tools to implement a secure and efficient authentication system using Laravel Sanctum.
    Laravel Sanctum API for Admin and User Roles: Complete Setup Guide [HINDI]
    Our Playlists:
    OOP In PHP:
    • OOP - PHP
    Git Full Tutorial
    • GIT Tutorial
    Laravel 9:
    • Laravel 9
    Vue 3 Laravel 9 Tutorial:
    • Vue 3 Laravel 9
    Laravel Testing:
    • Laravel Testing
    Nuxt Js
    • NuxtJS
    Laravel And Vuejs
    • Laravel And Vuejs
    Laravel Notifications:
    • Laravel Notification
    Laravel And React Js
    • Laravel ReactJs
    Laravel Interview Questions And Answers:
    • Laravel Interview Ques...
    Laravel User Management System:
    • Laravel User Managemen...
    Laravel Multi Auth System
    • Laravel Multi Auth System
    Laravel Vue3 GraphQL
    • Laravel Vue 3 GraphQL
    Follow us:
    YoutTube: / ajayyadavexpo
    Instagram: / ajayyadavexpo
    Twitter : / ajayyadavexpo
    Linkedin: / ajayyadavexpo
    Github: github.com/aja...
    Please subscribe to my channel and share the video with your friends.
    #laravel #sanctum #laravel11Sanctum #laravel11

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

  • @manishsajandasani3739
    @manishsajandasani3739 3 месяца назад

    No doubt, you are a Laravel Magician.

    • @ajay-yadav
      @ajay-yadav  3 месяца назад

      Wow, thanks! That means a lot.

  • @aktarzia7782
    @aktarzia7782 3 месяца назад

    Sir pleas make Laravel and react crud operation video

  • @mubeenmughal1881
    @mubeenmughal1881 3 месяца назад

    sir g. menay alag alag 2 table banaye hain. admin and user ka is main menay middleware ko bana ha. (AdminAuthenticate)
    if (!Auth::guard('admin')->user()) {
    return response()->json(['response_message' => 'Unauthenticated.'], 401);
    }
    nai chal raha h. aur mujhe (USERS, ADMIN ) dono k. (Guard, Auth) chahiye. kis tarhan bano. is main guide kardain. Please...

    • @ajay-yadav
      @ajay-yadav  3 месяца назад

      'api' => [
      'driver' => 'sanctum',
      'provider' => 'users',
      ],
      'admin' => [
      'driver' => 'sanctum',
      'provider' => 'admins',
      ],
      please check config /auth.php

  • @sehzadaaalam313
    @sehzadaaalam313 3 месяца назад

    Laravel API ka full course upload kare