public function createMigration()
    {
        $table = $this->table;

        if (Schema::hasTable($table)) {
            return 'Table Already Exists!';
        } else {
            //Calling Artisan command to create table
            Artisan::call('make:migration', [
                'name'     => 'create_'.$table.'_table',
                '--create' => $table,
            ]);

            return Artisan::output();
        }
    }
public function createMigration()
    {
        $table = $this->table;

        if (Schema::hasTable($table)) {
            return 'Table Already Exists!';
        } else {
            //Calling Artisan command to create table
            Artisan::call('make:migration', [
                'name'     => 'create_'.$table.'_table',
                '--create' => $table,
            ]);

            return Artisan::output();
        }
    }
public function createMigration ( ) { $ table = $ this -> table ; if ( Schema :: hasTable ( $ table ) ) { return 'Table Already Exists!' ; } else { //Calling Artisan command to create table Artisan :: call ( 'make:migration' , [ 'name' => 'create_' . $ table . '_table' , '--create' => $ table , ] ) ; return Artisan :: output ( ) ; } }
Creating Table File.

@param array $input
Creating Table File .