creating migration using database laravel code example
Example 1: how to make-migrations in laravel
php artisan make:migration create_users_table --create=users
php artisan make:migration add_votes_to_users_table --table=users
Example 2: 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');
}