Just discovered Laravel's "@.production" blade directive. So useful for all sorts of analytics-y things inside <head> 👌
👌Clever little trick to add descriptions to items in a select dropdown - found on Laravel Forge
@jesseschutt If you don't need the "->has()" then you can clean it up even more. When is a personal fav of mine as well 😃👏
I don't think this is in the docs: You can register multiple resource routes in this array style (problem is you lack "only" and "except")
Killing conditionals with ltrim and rtrim! Great technique for dealing with optional "/"s at the beginning or end of path strings.
Just learned array_filter has a dual purpose! 😍 It eliminates falsy values if no callback is supplied. Works with collections as well 🤠
Fun experiment - store and update controller methods are usually frustratingly similar - I made them the exact same... and it works 😱
Route::apiResource is Route::resource without registering "create" and "edit" routes. Thanks @waunakeesoccer1 for showing me this!
Discovered Eloquent's "latest()" works with custom column names. Use it anywhere you use ->orderBy(xxxx, 'desc')
Love when "min" or "max" can kill a conditional 😎
I always forget how to read composer versions: "^", "~", "<=", "*".... so I made little cheatsheet - enjoy☝️