๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

โœ… 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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

๐Ÿš€ 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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

๐Ÿ”ด 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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

๐Ÿš€ 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

๐—ฆ๐˜๐—ฎ๐—ฟ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ž๐—ต

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