Laravel Pro Tips
#gates #cheatsheet
π A #Laravel Gate #cheatsheet #PHP π₯β‘οΈ
Aaron Lumsden π | Indie Hacker Dev
#files #cheatsheet
π #Laravel File #cheatsheet #php π₯π₯ β‘οΈAre there any of these methods that you weren't aware of?
#eager loading #performance #lazy loading
πIf performance is the #1 priority in your project you might want to disable lazy loading completely. Eloquent will throw a huge exception in your face if a relation is not eager-loaded and you try to access it. Just use this snippet:
Martin Joo
#authentication #cheatsheet
πA #Laravel Auth #cheatsheet π₯π₯ #PHP
#routes
π₯ #Laravel Tip: Make use of signed and temporary signed routes to prevent people modifying important urls / links.
Matt Kingshott
#responses #cheatsheet
β‘οΈA Laravel Response #cheatsheet π₯π₯ Some of the available methods on Laravel's response helper. π€ #laravel #php
#eloquent #models #relationships
πΆοΈ #Laravel Tip: The Eloquent push() method allows you to save the Model and all of its relations in one shot. Compared to the save() that only saves the Model itself. Here's a practical example to illustrate π₯ https://t.co/N6q2wyDrya #PHP #Laravel
Bilal Haidar - Available 4 Laravel gigs
#cheatsheet #config
π A #laravel Config #CheatSheet π The great thing about Laravel is the documentation is in the method names. π€
#migrations
While adding a New Column to existing table using Migration, the column is always added at the last.β You can use the after() to place the New Column after a specific column.β You can also use the first() to place the New Column at the start of the table. #Laravel #PHP
Aftab Khan π