write queries in migration + laravel code example Example: laravel create db table php artisan make:migration create_users_table