A guide to Laravel Model Events, API Versioning in Laravel 11, and more! №522

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Your Laravel week in review

Week 522

A guide to Laravel's model events

πŸš€ Laravel’s model events make handling model lifecycle changes a breeze! Hook into events like created, updated, and deleted for cleaner, more modular code. Ideal for logging, notifications, and more.

Sponsor

Porkbun β€” the best domain registrar for Laravel pros

Porkbun was named the #1 domain registrar by USA Today two years in a row and is the favorite registrar for developers, web designers, and everyone in the tech industry. We lead the way with low prices on domains, powerful hosting products like our Easy PHP hosting plans, and personalized support 365 days a year!

Why pay for things that should be free, right? Every domain name at Porkbun comes with tons of freebies like SSL certificates, WHOIS privacy, DNS & URL forwarding, web and email hosting trials, and more.

Right now, save $1 off your next domain name by clicking the link or using code LARAVEL24 at checkout.

▢️

Generic Eloquent, resize observers, and mastering query scopes

This week Jake and Michael discuss Generic Eloquent, resize observers, and mastering query scopes

API Versioning in Laravel 11

Catch up quick: Laravel 11 introduces built-in support for API versioning, streamlining the process of managing multiple versions of an API within the same application.

Why it matters: API versioning is essential for maintaining backward compatibility while rolling out new features. It allows developers to iterate and improve APIs without disrupting existing consumers.

  • Routing: Laravel 11 makes it easy to define versioned routes.
  • Controllers: Separate controllers for different versions can be maintained.
  • Flexibility: Developers can gradually migrate clients to newer versions without breaking existing integrations.

VS Code Snippets for Livewire and Alpine.js

Utilizing these VS Code snippets for Livewire and Alpine.js can significantly speed up development, allowing you to focus more on functionality and less on boilerplate code.

A Resize Plugin for Alpine.js

Caleb Porzio, creator of Alpine.js, just released a resize plugin that allows you to react easily when an element changes. This is useful for custom size-based animations, intelligent sticky positioning, and more.

How to Migrate MySQL from DBngin to Laravel Herd

Migrating databases can be complex and time-consuming. here is an efficient solution, minimizing downtime and ensuring data integrity during the migration process.

Laravel Jobs

The official Laravel job board connecting the best jobs with top talent.

Now hiring

Post a job on LaraJobs and it'll be featured here next week.

The Archives

Laravel News PO Box 196 Cramerton NC, 28032
Send us a postcard! You are receiving this because you joined the Laravel News weekly digest. If you know someone who would enjoy this newsletter please consider sharing it.

View Online | Preferences | Unsubscribe

Facebook Instagram LinkedIn Twitter YouTube

Older messages

🐘 PHP 8.4 Alpha 1, Laravel v11.15, and more! - №521

Sunday, July 14, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Laravel v11.14, Auth Screens for Your Laravel Apps, and more! - №520

Sunday, July 7, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Laravel v11.12, Inertia Table, Laravel Cart Package, and more! - №519

Sunday, June 30, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Laravel 11.7, Statamic 5, and more! - №512

Sunday, May 12, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

NativePHP now supports Windows! - №511

Sunday, May 5, 2024

Your Laravel week in review ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

You Might Also Like

JSK Daily for Jan 4, 2025

Saturday, January 4, 2025

JSK Daily for Jan 4, 2025 View this email in your browser A community curated daily e-mail of JavaScript news Optimizing Productivity: Integrate Salesforce with JavaScript Scheduler Syncfusion

Daily Coding Problem: Problem #1658 [Easy]

Saturday, January 4, 2025

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Google. You are given an array of arrays of integers, where each array corresponds to a

📱 Why You Should Buy an iPhone 15 in 2025 — This Is My Favorite AI Image Upscaler, and It’s Free

Saturday, January 4, 2025

Also: The Best Laptop Docking Stations in 2025, and More! How-To Geek Logo January 4, 2025 Did You Know There are only three live-action animals enshrined on the Hollywood Walk of Fame. All three are

Ranked | The Most Viewed Wikipedia Pages in 2024 📊

Saturday, January 4, 2025

From Kamala Harris to India's general election, politics dominated readers interests in 2024 as a historic number of people went to the polls. View Online | Subscribe | Download Our App FEATURED

Weekend Reading — DOOM x 2

Saturday, January 4, 2025

Andy P “But it is public domain” Tech Stuff Fish 4.0b1 I'm giving Fish a try. So far it's really amazing and a step up from ZSH, which itself was a step up from Bash. 4.0b1 is out, noted as “

🐍 New Python tutorials on Real Python

Saturday, January 4, 2025

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: Building HTTP APIs With Django REST Framework

Smash Your New Years Goals With the Informant 5 App

Saturday, January 4, 2025

Informant 5 is a complete planner in your pocket. Manage Calendars, Tasks, Projects, and Tags in a single app. This app is one of the few that combines both your calendar AND your tasks into a singe

U.S. Sanctions Chinese Cybersecurity Firm for State-Backed Hacking Campaigns

Saturday, January 4, 2025

THN Daily Updates Newsletter cover JavaScript: Mastering JavaScript from Basics to Advanced Topics ($54.99 Value) FREE for a Limited Time This book provides a comprehensive introduction to JavaScript

📧 Unit Testing Clean Architecture Use Cases

Saturday, January 4, 2025

​ Unit Testing Clean Architecture Use Cases Read on: m​y website / Read time: 7 minutes The .NET Weekly is brought to you by: Introducing Depot Cache, the powerful way to make incremental builds up to

iOS Dev Weekly - Issue 693

Friday, January 3, 2025

Happy New Year, and here's to a cracking 2025! 🎊 View on the Web Archives ISSUE 693 January 3rd 2025 Comment Happy New Year, everyone! 🎊 I hope you all had a restful and relaxing break if you took