Need Assistance?

support@tutorialshub.in

REST APIs & Sanctum Authentication

Setting Up API Routes (routes/api.php)

ADVERTISEMENT
Laravel Free Lesson
5 min read
ADVERTISEMENT

In Laravel 11+, run php artisan install:api to enable routes/api.php and Laravel Sanctum. All routes inside routes/api.php are automatically prefixed with /api and stateless.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you