_Deploy Laravel To Shared Hosting The Easy Way
Deploy Laravel To Shared Hosting The Easy Way … Read More »_Deploy Laravel To Shared Hosting The Easy Way
Deploy Laravel To Shared Hosting The Easy Way … Read More »_Deploy Laravel To Shared Hosting The Easy Way
How your Laravel application can get hacked, and how to prevent that from happening by Antti Rössi … Read More »How your Laravel application can get hacked, and how to prevent that from happening by Antti Rössi
If you want to change the order of DB migrations, just rename the file’s timestamp, like from 2018_08_04_070443_create_posts_table.php to 2018_07_04_070443_create_posts_table.php (changed from 2018_08_04 to… Read More »Laravel Tips: Order of Migrations [4]
You can specify orderBy() directly on your Eloquent relationships.
You can use RAW DB queries in various places, including havingRaw() function after groupBy().
If you want to create a controller with just one action, you can use __invoke() method and even create “invokable” controller. Routes: Artisan command to… Read More »Laravel Tips: Single Action Controllers [1]
For foreign key migrations instead of integer() use unsignedInteger() type or integer()->unsigned(), otherwise you may get SQL errors. You can also use unsignedBigInteger() if that… Read More »Laravel Tips: Unsigned Integer [2]
Laravel: Performance optimization: how do I go about it? by Kasia Zien … Read More »Laravel: Performance optimization: how do I go about it? by Kasia Zien