Laravel Pro Tips
#models #accessors
π₯ #Laravel Tip: Thanks to model accessors, adding a url-safe slug to a blog post model is exceptionally easy to do. Include it in the βappendsβ array to make it available when calling toArray().
Matt Kingshott
#accessors #datetime
π₯ In your Laravel apps, you can sometimes use DATETIME fields instead of booleans. By doing this, you can still check for boolean values (using an accessor) and get to store extra datetime information that might be useful in your app later. #laravel #php
Ash Allen π
#dates #accessors #mutators #timezones
πΆοΈ #Laravel Tip: Use Laravel Accessor/Mutator to ππ²π Date field in UTC and π΄π²π Date field in user's current Timezone. Working with dates with timezones is always tricky & challenging πͺ #PHP #Developers #100daysofcodechallenge
Bilal Haidar - Available 4 Laravel gigs
No articles were found.