Is there any possible way to generate database from models in Laravel ? I am working on an existing laravel project,it contains models without their migrations.
//write this code in your model
if (!Schema::hasTable('table_name')) { Schema::create("users", function($table) { $table->increments("id"); $table->string("username", 32); $table->string("email", 320); $table->string("password", 64); $table->timestamps(); }); } // hope its working
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community