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

๐Ÿ‘‹ Hi there! Iโ€™m Soeng Souy (StarCode Kh)
๐ŸŒฑ Currently creating sample projects with Laravel, React, Vue, Node, Nuxt, Python, and Livewire
๐Ÿ‘ฏ Looking to collaborate on open-source PHP & JavaScript projects
๐Ÿ’ฌ Ask me about Laravel, MySQL, or Flutter
โšก Fun fact: I love turning โ˜•๏ธ into code!

โœจ Enjoying the content?
๐Ÿ‘‰ Subscribe for FREE: youtube.com/@laravelcrud

๐Ÿ”— Connect with me:
๐Ÿ“ฑ Telegram: t.me/starcodekh
๐Ÿ“˜ Facebook: www.facebook.com/starcodekh
๐ŸŒ Website: souysoeng.com/
๐Ÿ“Š Admin Template: admintem.com/
๐Ÿ› ๏ธ Fix Code: fixcodekh.com/
๐Ÿฆ 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

1 month ago | [YT] | 7

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

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

1 month ago | [YT] | 12

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

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

1 month 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

1 month 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

1 month ago | [YT] | 14

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

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

1 month ago (edited) | [YT] | 14

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

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

1 month 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.โ€

1 month 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

3 months 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

4 months ago | [YT] | 10