Laravel

How To Change Model Timestamps Column Names In Laravel

There will be a situation where you’ve to continue using your old or legacy database which might differ with Laravel’s way of naming column names in tables. Laravel provides few default timestamps fields such as created_at, updated_at and deleted_at.

How to build query string from an array using Laravel helper

Laravel provide a helper Arr::query() to build query string from an array, an alternative to core php http_build_query() method. Tested with Laravel versions 5.8, 6 and 7. Kindly check for your version on official helpers page.

Get Array of IDs from Eloquent Collection in Laravel

A tutorial how to get array of ids from Eloquent Collection in Laravel