Skip to main content

Search Results for "auth sanctum"

We found 13 results for "auth sanctum".

Course Lesson Flutter 3 Mobile App with Laravel 12 API 4 min read Premium

05 - API Authentication

An API without authentication is like a house without a door. So, let's secure our API by adding an authentication system to it: Set up Sanctum Middleware Create a User Registration API Create a User Login API Let's get secure! Setting Up Authentication Middleware Let's start by securing our API endpoint with a Middleware: routes/api

Code Example familytree365/backend

familytree365/backend

Files in the example:

  • composer.json
  • app/Http/Kernel.php
  • app/Http/Controllers/LoginController.php
  • app/Models/User.php
  • routes/api.php
  • app/Http/Controllers/RoleController.php

Code Example bytefury/crater

bytefury/crater

Files in the example:

  • composer.json
  • app/Models/User.php
  • routes/api.php
  • app/Http/Controllers/V1/Mobile/AuthController.php

Code Example koel/koel

koel/koel

Files in the example:

  • composer.json
  • app/Models/User.php
  • app/Services/TokenManager.php
  • app/Http/Controllers/API/AuthController.php
  • config/auth.php