8
π₯ You can associate an input with a form using the form= attribute

π₯ This week's code tips for Laravel developers
A weekly thread π§΅
8
7
β‘οΈ Database Tip
Most developers are puzzled that indexes are not used for e.g. WHERE LOWER(email) = ?. But contrary to common belief, an index can be created for these cases! It's called a function-based index and is supported by MySQL and PostgreSQL.
6
π #Laravel Tip | In some cases you don't want the updated_at field the change when updating small things. .. Did you know you could disable the timestamps while saving your data? Here is how... π₯
#laraveltip #php #code #development #details
5
π₯ Did you know that you can create Storage disks on the fly in @laravelphp? This is super useful when you want your user to provide their own filesystem credentials, e.g. a user can bring their own S3 bucket to your app.
4
π₯ Laravel tip: Customizing Missing Model Behavior in route model bindings
By default, Laravel throws a 404 error when it can't bind the model, but you can change that behavior by passing a closure to the missing method.
3
#TIL How to calculate the age using a date in Laravel or using Carbon.
#LaravelTip #PHPTip #dev
2
π₯ Laravel Tip: Route model binding soft-deleted models
By default, when using route model binding will not retrieve models that have been soft-deleted.
You can change that behavior by using withTrashed
in your route.
1
π₯ #Laravel Tip: Hot off the press, the latest release includes the βsquishβ global helper method by @DwightConrad. It removes all extraneous white space from a string, including between words. Itβs like βtrimβ on steroids :)
We're writing a book, you can get it for free here. We're writing a book! Join the early access to get it for free.