Answers for "Laravel 8 migrations timestamp current"

PHP
2

artisan make migration with model

php artisan make:Model Status -m
Posted by: Guest on November-06-2020
0

datetime-local laravel migration data type

public function getDateStartAttribute($value)
{
    return Carbon::parse($value)->format('Y-m-d\TH:i');
}

public function getDateEndAttribute($value)
{
    return Carbon::parse($value)->format('Y-m-d\TH:i');
}
Posted by: Guest on December-11-2020

Code answers related to "Laravel 8 migrations timestamp current"

Browse Popular Code Answers by Language