Answers for "laravel table date"

PHP
5

datetime format laravel

//laravel method 1
{{ $data->created_at->isoFormat('dddd D') }}

//laravel method 2 
{!! date('d/M/y', strtotime($data->created_at)) !!}
Posted by: Guest on August-08-2020
1

insert date field automatically laravel

public $timestamps = true;
Posted by: Guest on June-08-2021
3

laravel migration integer

$table->bigInteger('votes');
Posted by: Guest on May-22-2020

Browse Popular Code Answers by Language