src/commands/MigrationsCommand.php
public function createMigration()
    {
        $migration = $this->laravel->path . '/database/migrations/' . date('Y_m_d_His') . '_drawbridge_migrations_tables.php';
        $view = $this->laravel->make('view')->make('drawbridge::migration')->render();

        if (! file_exists($migration))
        {
            $fs = fopen($migration, 'x');
            if ($fs)
            {
                fwrite($fs, $view);
                fclose($fs);
                return true;
            }
        }

        return false;
    }
public function createMigration()
    {
        $migration = $this->laravel->path . '/database/migrations/' . date('Y_m_d_His') . '_drawbridge_migrations_tables.php';
        $view = $this->laravel->make('view')->make('drawbridge::migration')->render();

        if (! file_exists($migration))
        {
            $fs = fopen($migration, 'x');
            if ($fs)
            {
                fwrite($fs, $view);
                fclose($fs);
                return true;
            }
        }

        return false;
    }
public function createMigration ( ) { $ migration = $ this -> laravel -> path . '/database/migrations/' . date ( 'Y_m_d_His' ) . '_drawbridge_migrations_tables.php' ; $ view = $ this -> laravel -> make ( 'view' ) -> make ( 'drawbridge::migration' ) -> render ( ) ; if ( ! file_exists ( $ migration ) ) { $ fs = fopen ( $ migration , 'x' ) ; if ( $ fs ) { fwrite ( $ fs , $ view ) ; fclose ( $ fs ) ; return true ; } } return false ; }
Create migration for tables

@return bool
Create migration for tables