Загрузка...

Build a Secure Laravel 12 API with Sanctum Authentication and CRUD

Hi there 👋, I’m Soeng Souy (StarCode Kh)
-------------------------------------------
🌱 I’m currently creating a sample Laravel and React Vue Livewire
👯 I’m looking to collaborate on open-source PHP & JavaScript projects
💬 Ask me about Laravel, MySQL, or Flutter
⚡ Fun fact: I love turning ☕️ into code!
--------------------------------------------
Full code:https://www.souysoeng.com/2025/06/build-secure-laravel-12-api-with.html
--------------------------------------------
▸|00:00:00|Start
▸|00:00:25|Prerequisites (PHP, Composer, Laravel, MySQL or MariaDB, Postman)
▸|00:00:39|Create a Laravel 12 Project
▸|00:01:43|Install Laravel Sanctum
▸|00:02:15|Add HasApiTokens to User Model
▸|00:02:55|Configure Database
▸|00:04:13|Create API Routes
▸|00:04:53|Define API Routes
▸|00:05:21|Create controller and method
▸|00:06:00|Add Register Logic and Get User in Controller
▸|00:06:28|Create Post Model, Migration, and Controller
▸|00:07:33|php artisan migrate
▸|00:08:05|Implement PostController Logic
▸|00:08:58|Add Relationship to User Model
▸|00:10:33|php artisan serve
▸|00:11:11|Register Example
▸|00:12:14|Login Example
▸|00:13:16|Create Post Example
▸|00:14:35|Update Post Example
▸|00:16:20|Get All Post
▸|00:17:00|Delete Post Example
▸|00:19:24|Summary
--------------------------------------------
Follow Soeng Souy on:
-------------------------------------------
Enjoying the content?
=================
► Subscribe here for FREE:https://www.youtube.com/@laravelcrud
--------------------------------------------
🚀 Build a Secure Laravel 12 API with Sanctum Authentication and CRUD
*In this step-by-step tutorial, learn how to create a secure RESTful API using Laravel 12 with Sanctum authentication and full CRUD functionality. Whether you're building APIs for mobile apps or SPAs, this video covers everything from user registration and login to protecting routes and managing data securely.

🔑 What You'll Learn:
Installing and configuring Laravel Sanctum
User registration and login with API tokens
Protecting API routes with Sanctum middleware
Creating CRUD endpoints for resource management
Validating requests and handling errors
Testing APIs with Postman

► Telegram: https://t.me/starcodekh
► Facebook page: https://www.facebook.com/starcodekh
► Website: https://souysoeng.com/
► Fix Code: https://fixcodekh.com/
► LinkedIn: https://www.linkedin.com/in/soengsouy/
► Twitter: https://twitter.com/StarCodeKh
𝗦𝘁𝗮𝗿𝗖𝗼𝗱𝗲 𝗞𝗵 :) Thank you for being so supportive!
#coding #nginx #laravelvue #laraveldeveloper #programming #laravel #starcodekh #soengsouy

Видео Build a Secure Laravel 12 API with Sanctum Authentication and CRUD канала 𝗦𝘁𝗮𝗿𝗖𝗼𝗱𝗲 𝗞𝗵
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять