r/laravel • • 4h ago

Laravel Best Practices: Clean Code and Architecture

Thumbnail
codyssey.dev
12 Upvotes

Hey all,

I wrote a course about the bad habits that make Laravel codebases hard to change, work with as well as slower as the complexity grows over time in long-term applications.

The examples are specific to Laravel but they can also be applied to any other PHP application as well with the framework-equivalent approach.

I’ve made some of these mistakes myself as well as I’ve seen them in different projects of different sizes I worked on over the years so the list does come from experience.

The story and the examples are fictional but the habits are based on a true story.

Let me know what you think and if you find anything out of the ordinary in the text, readability or examples.

Thanks!


r/laravel • • 3h ago

I built a shared pixel canvas with Laravel Rust

Post image
7 Upvotes

A fun experiment with Laravel Rust, already saw some cool things come by 👀

Try it: dots.spatie.be
Blogpost: https://freek.dev/3255-i-built-a-shared-pixel-canvas-with-laravel-rust
Repo: https://github.com/spatie/dots.spatie.be


r/laravel • • 21h ago

FLEX Theme — a visual theme editor, enhanced search and keyboard workflows for Filament 5

Post image
8 Upvotes

Give your Laravel admin panel its own identity—and make everyday tasks easier to reach.
FLEX Theme combines a visual redesign with configurable workflow tools:

  • Visual theme editor: customize colors, fonts, branding, corners and layouts without writing CSS for each component.
  • Global Search with actions: find records, open edit forms and run authorized actions directly from the search window. Add custom commands, sources and nested contexts.
  • Keyboard controls: navigate table rows, select records, change pages and open filters with configurable shortcuts.
  • Interface details: stacked notifications, scheduled announcement bars, floating side panels and expandable bottom sheets.

Keep native Filament resources, forms, actions and permissions. Configure each panel independently, with selected settings controlled in PHP. Styling also works consistently with FLEX Fields.
Paid package. One-time payment, with one year of updates included.
Video, documentation and details:
https://filamentphp.com/plugins/bjanczak-flex-theme


r/laravel • • 19h ago

Laravel Go and Rust are not ready

135 Upvotes

I've been testing both Laravel Go and Rust, especially Go and the amount of plumbing you have to do for a statically typed language is unbearable at some point.

Relationships, you have to use struct tags, which are strings, easy to make mistakes.

The fact that you have to implement models manually, you could miss a field or field type that's in your migration, Laravel PHP handled this so well, one source of truth even if it's not statically typed, IDEs showed suggestions of your migration schema.

Validation workflow can be improved, especially in rust, no auto complete or suggestions, you have to keep the docs open for that.

Error handling could also improve especially for Go.

It's either these frameworks are meant for AI agents, or they'll improve over time, I mean it's version 0.1 so ...

Anyway as a long time Go and PHP dev, these frameworks are far from production when you dive a bit deeper not just benchmarks.