Hi, I'm Soeng Souy (StarCode Kh), a full-stack developer from Cambodia ๐ฐ๐ญ
On StarCode Kh I teach Laravel, system design and full-stack web development by building real projects, step by step.
๐ฏ What you'll learn
โข Laravel from beginner to advanced: CRUD, APIs, authentication, roles & permissions, modules
โข System design made simple: APIs, caching, databases, Docker, Git, web security
โข Full-stack apps with Vue, React, Nuxt, Node.js, Livewire & MySQL
โข Real projects: HR systems, school management, admin dashboards
๐
New videos every week
๐ Subscribe: youtube.com/@StarCodeKh?sub_confirmation=1
๐ Links
Telegram: t.me/starcodekh
Facebook: www.facebook.com/starcodekh
Website: souysoeng.com
Admin Templates: admintem.com
Fix Code: fixcodekh.com
X (Twitter): twitter.com/StarCodeKh
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
Laravel Webhooks
Webhooks in Laravel allow apps to communicate in real time by sending simple HTTP POST requests when specific events happen.
Receiving Webhooks
Route: Create a POST route in api.php or web.php as the webhook endpoint.
Controller: Handle the incoming request in a controller method.
Validation: Verify signatures, shared secrets, or whitelist IPs for security.
Processing: Store the payload and process it in a queued job to keep responses fast.
Sending Webhooks
Trigger: Fire webhooks when certain events occur.
Dispatch: Send POST requests to external endpoints.
Customize: Include relevant event data in the payload.
Retry: Add retry logic for failed attempts.
Useful Laravel Packages
spatie/laravel-webhook-client โ Receive & validate webhooks.
spatie/laravel-webhook-server โ Send signed webhook calls with retries.
laravel-notification-channels/webhook โ Send webhooks using Laravel notifications.
Security Tips
Verify signatures.
Whitelist trusted IPs.
Apply rate limiting.
Handle errors safely.
#Laravel #Webhooks #Laravel10 #Laravel12 #PHP #APIs #RealTime #WebhookClient #WebhookServer #Spatie #BackendDevelopment #WebDevelopment #LaravelTips #LaravelTutorial
10 months ago | [YT] | 11
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
Eloquent in Laravel is the built-in ORM (Object-Relational Mapper) that allows you to interact with your database using PHP classes called Models instead of writing raw SQL. It makes database operations like querying, inserting, updating, and
Deleting records is easy and intuitive through an expressive syntax.
#Laravel #Eloquent #LaravelEloquent #PHP #WebDevelopment #ORM #Database #LaravelTutorial #Backend #Programming #Code #LaravelPHP #DevTips
10 months ago | [YT] | 13
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
Laravel is beginner-friendly if you know basic PHP and web development.
It has clean syntax, great docs, and many built-in features that make development faster.
The main challenges are learning MVC structure, Eloquent ORM, and setup.
With practice and good tutorials, itโs not hard to learn!
#Laravel
#PHP
#WebDevelopment
#LaravelTutorial
#LearnLaravel
#BackendDevelopment
#LaravelBeginner
#Programming
#WebDev
#Coding
10 months ago | [YT] | 13
View 4 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
โ What Laravel Sanctum Is Used For
1. API Token Authentication
Create personal access tokens for users.
Perfect for mobile apps, SPA (Vue/React), and external API clients.
2. SPA Authentication (Cookie-Based)
Handles login for React, Vue, Next.js, etc.
Uses Laravelโs built-in session + CSRF for secure authentication.
3. Lightweight alternative to Passport
Sanctum is easier and faster for typical CRUD APIs.
No OAuth complexity, no heavy token system.
๐ Why Developers Use Sanctum
Easy to set up
Secure and modern
Supports multiple device logins
Works with both token and cookie authentication
#Laravel #LaravelSanctum #Sanctum #APISecurity #APIAuthentication
#WebDevelopment #PHP #BackendDevelopment #RESTAPI #LaravelTutorial
#WebSecurity #TokenAuthentication #FullStackDeveloper
10 months ago | [YT] | 10
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
Laravel security functions (short version):
@csrf โ CSRF protection for forms
Hash::make() โ Secure password hashing
Hash::check() โ Verify hashed passwords
{{ }} โ Escape output (XSS protection)
encrypt() / decrypt() โ Data encryption
These are the core security functions used in Laravel.
#LaravelSecurity
#Laravel
#PHP
#WebSecurity
#BackendSecurity
#SecureCoding
#WebDevelopment
#CodingTips
10 months ago | [YT] | 15
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
Backend: Laravel handles tasks such as routing, database management, authentication, business logic, API creation, and server-side rendering.
Frontend: Laravel itself doesnโt handle frontend UI directly, but it can serve frontend views using Blade templates (Laravelโs templating engine). However, the actual frontend design (HTML, CSS, JavaScript) is typically created by you or with frontend frameworks/libraries like Vue.js, React, or plain HTML/CSS.
#Laravel #Backend
#PHP #WebDevelopment
#BackendDevelopment #WebDev
#Programming #Tech
#Coding #Developer
10 months ago (edited) | [YT] | 15
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
๐ How to Learn Laravel Quickly (Short & Simple)
Know basic PHP (variables, functions, OOP).
Install Laravel & understand folder structure.
Learn routing, controllers, views, models, and migrations.
Build a simple CRUD project (fastest way to learn).
Learn authentication using Laravel Breeze.
Learn Eloquent relationships (one-to-many, many-to-many).
Build one real project (blog, inventory, student system).
Learn APIs using Sanctum or Passport.
Practice daily โ build, donโt read only.
10 months ago | [YT] | 10
View 2 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
๐ด Low Security Laravel (Short Script)
โNo validation, plain-text passwords, no rate limit, weak routes, CSRF disabled.
Easy to hack. Never use this setup.โ
๐ข High Security Laravel (Short Script)
โStrong validation, hashed passwords, rate-limited login, protected routes, CSRF enabled.
Safe, secure, and production-ready.โ
10 months ago | [YT] | 7
View 2 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
๐ JWT vs Passport: What's the Difference?
๐น JWT (JSON Web Token)
A secure token format for transmitting info between client & server.
Stateless: no server-side session needed.
Used for verifying identity & granting access.
๐น Passport
A Node.js middleware for authentication.
Supports multiple strategies: Local, JWT, OAuth, Google, Facebook, etc.
Helps implement auth without writing all the logic yourself.
๐น How they work together:
Passport handles the strategy.
JWT carries the token.
Together, they make stateless, secure authentication easy.
๐ก TL;DR: JWT = token, Passport = tool to authenticate.
#WebDev #NodeJS #JWT #PassportJS #Authentication #CodingTips
1 year ago | [YT] | 10
View 0 replies
๐ฆ๐๐ฎ๐ฟ๐๐ผ๐ฑ๐ฒ ๐๐ต
GitHub vs GitLab: CI/CD & Docker Registry Explained
In this video, we compare GitHub and GitLab when it comes to:
Running automated tests with CI/CD
Building and pushing Docker images
Handling artifacts and registries
Key strengths and differences
๐น GitHub is perfect for open-source projects and has a huge actions marketplace.
๐น GitLab provides more powerful pipelines and a built-in container registry for enterprises.
๐ Watch till the end to see which platform fits your workflow better!
#GitHub #GitLab #DevOps #Coding #Docker #CI #CD
1 year ago | [YT] | 10
View 0 replies
Load more