https://github.com/dilan032/product-inventory-api
A lightweight RESTful API for inventory management using Laravel 12 with Sanctum authentication.
https://github.com/dilan032/product-inventory-api
eloquent-orm laravel-sanctum-api-auth-with-token laravel12x restful-api
Last synced: 5 months ago
JSON representation
A lightweight RESTful API for inventory management using Laravel 12 with Sanctum authentication.
- Host: GitHub
- URL: https://github.com/dilan032/product-inventory-api
- Owner: Dilan032
- Created: 2025-07-24T05:40:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-01T17:17:02.000Z (11 months ago)
- Last Synced: 2025-08-18T06:48:24.322Z (10 months ago)
- Topics: eloquent-orm, laravel-sanctum-api-auth-with-token, laravel12x, restful-api
- Language: Blade
- Homepage: https://product-inventory-api-main-rwayit.laravel.cloud/
- Size: 97.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
└── routes
├── api.php
├── console.php
└── web.php
/routes/api.php:
--------------------------------------------------------------------------------
1 | name('register');
12 |
13 | Route::post('/login',
14 | [AuthenticationController::class, 'login'])->name('login');
15 |
16 | // Product routes
17 | Route::middleware('auth:sanctum')->group(function () {
18 | Route::resource('products', ProductController::class)
19 | ->only(['index', 'store', 'show', 'update', 'destroy'])
20 | ->names([
21 | 'index' => 'products.index',
22 | 'store' => 'products.store',
23 | 'show' => 'products.show',
24 | 'update' => 'products.update',
25 | 'destroy' => 'products.destroy'
26 | ]);
27 | });
28 |
29 |
30 |
31 |