Support the ongoing development of →
posted 6 years ago
Last updated 1 year ago.
php artisan make:migration table_name_here

Only generates the migration file/class and its stubbed methods up()/down(). You need to code out your schema.

    public function up()
        Schema::create('companies', function (Blueprint $table) {


When your schema is done within the up() method, you can then run the migration with

php artisan migrate


Migration only creates the Migration Class. You need to create the schema by yourself in the up function. It's easy. You can get a sample schema from the documentation.


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.