laravel-best-practices
Laravel
laravel-best-practices | Laravel | |
---|---|---|
14 | 225 | |
10,759 | 31,520 | |
- | 1.5% | |
5.9 | 10.0 | |
6 months ago | 1 day ago | |
PHP | ||
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
laravel-best-practices
- TIL how to write better code in laravel
- How to write better code
-
In One Minute : Laravel
Laravel Best Practices
-
Do you still use Controllers with Inertia?
You should keep controllers and separate logic in services class, I try to follow best practices for readability separation of concerns DRY … this repository helps me find the way when in doubts https://github.com/alexeymezenin/laravel-best-practices
-
Any reading materials / videos to watch for advanced laravel programming other than Laracast?
https://github.com/alexeymezenin/laravel-best-practices check this out and make sure you follow the best practices
-
Where can I learn about laravel design best practices?
A good starting point might be: https://github.com/alexeymezenin/laravel-best-practices
-
Share your PHP best practices with your team in PHPStorm
Once everything is ready, just keep on coding until you realize a specific code snippet does not follow a best practice. Let’s take a simple example with this Laravel best practice, but assume you’ll define a practice specific to your context.
- Where do you put custom functions for models?
- Does anyone knows any good opensource repo of a laravel application that I can learn the best practices or architecture?
-
About " Business logic should be in service class "
I have seen in laravel-best-practices that the business logic should be in service class , and I agree with that because I'm planning to have a web routes and a a Restful routes so I have few questions
Laravel
-
Tell HN: Laravel's default truncate method uses cascade for Postgres databases
Hope this saves a future team from unexpected behavior resulting in (potential) production data loss.
When using Postgres, Laravel's default method for truncate uses the cascade option, which will ignore foreign key constraints and potentially wipe large amounts of data with no confirmation or warning.
It was originally introduced in 2018: https://github.com/laravel/framework/pull/26389/files
Here are two threads on it if you are curious: https://github.com/laravel/framework/issues/29506
-
Exploring Middleware in Laravel 11
I am just exploring middleware in this post, but as you can see this is quite a different approach than we've seen historically. I sat there scratching my head, "How do I set up my own middleware? How do I change the defaults?" I had to explore the Illuminate\Foundation\Configuration\Middleware class to find out.
- Automatizando fluxos de trabalho com GitHub Actions
- Testando filas em projetos Laravel
-
alof-lib: a PHP array-like objects functions library
For example check out this issue I reported on their side: https://github.com/laravel/framework/issues/49089
-
PHP: check dates
It does not mean you should absolutely use it everywhere, but it can make sense for your case. Many frameworks, like Laravel use it to compose new projects.
-
An Internet of PHP
https://github.com/laravel/framework/blob/00894b89e42a9d707c...
Even Tinker is a few lines of code to extend PsySH and credit is barely given.
Taylor Otwell is a fiend for creating wrappers around solid open source libraries, using PHP magic and encouraging bad practices, all just to breed an ecosystem ultimately to land him a Lambo, fuelled by amazing open source foundations that have barely been contributed back to by him.
- Laravel 10.15 Released: Sub-minute Task Scheduling, Raw SQL Query Builder Methods, and More
-
Laravel’s ForwardsCalls trait
This same system has been used in Laravel since version 4.0* albeit in the more PHP plain way, using call_user_func_array (Laravel Model Class).
- From Concept to Image: Exploring OpenAI Image Generation API with Laravel 10 and VueJS
What are some alternatives?
pingcrm - A demo application to illustrate how Inertia.js works.
nuxt3-supabase - Nuxt 3 module and composables for Supabase.
passport-introspection-docs - Companion repository containing example applications and documentation for our Passport Introspection packages.
octane - Supercharge your Laravel application's performance.
deck - DECK is a powerful and high performant local web development studio, an open source alternative to Docker desktop
fingerprintjs - Browser fingerprinting library. Accuracy of this version is 40-60%, accuracy of the commercial Fingerprint Identification is 99.5%. V4 of this library is BSL licensed.
Monica - Personal CRM. Remember everything about your friends, family and business relationships.
FrameworkBenchmarks - Source for the TechEmpower Framework Benchmarks project
Crater Invoice - Open Source Invoicing Solution for Individuals & Businesses
Nextcloud - ☁️ Nextcloud server, a safe home for all your data
Iris - The fastest HTTP/2 Go Web Framework. New, modern and easy to learn. Fast development with Code you control. Unbeatable cost-performance ratio :rocket:
ProxiTok - Open source alternative frontend for TikTok made using PHP