An open API service indexing awesome lists of open source software.

https://github.com/techsolutionstuff/laravel-11-rest-api-with-passport-authentication

In this article, we'll see Laravel 11 REST API CRUD operation with Passport Authentication.
https://github.com/techsolutionstuff/laravel-11-rest-api-with-passport-authentication

crud-operation laravel laravel-11-api laravel-11-crud laravel-11-rest-api laravel-passport laravel11 passport rest-api

Last synced: 2 months ago
JSON representation

In this article, we'll see Laravel 11 REST API CRUD operation with Passport Authentication.

Awesome Lists containing this project

README

        

# Laravel 11 REST API With Passport Authentication

Hello developers! In this article, we'll see Laravel 11 REST API with Passport Authentication. Also, we'll perform CRUD(create, read, update, delete) operation in REST API in laravel 11 with Passport. 

Before getting started, you may wish to determine if your application would be better served by Laravel Passport or Laravel Sanctum.

If your application needs to support OAuth2, then you should use Laravel Passport. Laravel Passport provides a full OAuth2 server implementation for your Laravel 11 application.

We'll Install Laravel Passport via the install:api Artisan command. In **[laravel 11 publish API routes](techsolutionstuff.com/post/how-to-publish-api-route-file-in-laravel-11)**.

```
Step 1: Install Laravel 11 Application

Step 2: Install Passport

Step 3: Configure Passport

Step 4: Add Model and Migration

Step 5: Create API Routes

Step 6: Create Controller Files

Step 7: Create Eloquent API Resources

Step 8: Run Laravel App
```

---

### [Read More: Laravel 11 REST API With Passport Authentication](https://techsolutionstuff.com/post/laravel-11-rest-api-with-passport-authentication)