0
votes

Well, I have a web application and I want to create a teable with Schema Builder, and I cannot Create a migration in a shared hosting, what can you suggest to make a table with Schema?

Schema::create('users', function($table)
{
    $table->increments('id');
});

ps. I want to use specifically Laravel's Schema Builder to create tables

2

2 Answers

0
votes

You can solve this by creating migrations and a install route. From which you can call some thing like this Artisan::call('migrate');

for more info look at this Run Artisan Commands Form Route or Controller

0
votes

Have you tried using Laravel's Routing to run schema builder ?

Route::get('/', function () {

    Schema::create('table', function($table) {

      $table->increments('id');

    });

    return "done.";

});