protected function createMigration($table)
    {
        $table = strtolower($table);

        $filepath = base_path() . '/database/migrations/' . date('Y_m_d_His') . '_FilesCreate' . studly_case($table) . 'Table.php';

        $output = view('_files::migrations.' . $table)->render();

        if ( ! file_exists($filepath))
        {
            $fs = fopen($filepath, 'x');
            if ($fs)
            {
                fwrite($fs, $output);
                fclose($fs);

                return true;
            } else
            {
                return false;
            }
        } else
        {
            return false;
        }
    }
protected function createMigration($table)
    {
        $table = strtolower($table);

        $filepath = base_path() . '/database/migrations/' . date('Y_m_d_His') . '_FilesCreate' . studly_case($table) . 'Table.php';

        $output = view('_files::migrations.' . $table)->render();

        if ( ! file_exists($filepath))
        {
            $fs = fopen($filepath, 'x');
            if ($fs)
            {
                fwrite($fs, $output);
                fclose($fs);

                return true;
            } else
            {
                return false;
            }
        } else
        {
            return false;
        }
    }
protected function createMigration ( $ table ) { $ table = strtolower ( $ table ) ; $ filepath = base_path ( ) . '/database/migrations/' . date ( 'Y_m_d_His' ) . '_FilesCreate' . studly_case ( $ table ) . 'Table.php' ; $ output = view ( '_files::migrations.' . $ table ) -> render ( ) ; if ( ! file_exists ( $ filepath ) ) { $ fs = fopen ( $ filepath , 'x' ) ; if ( $ fs ) { fwrite ( $ fs , $ output ) ; fclose ( $ fs ) ; return true ; } else { return false ; } } else { return false ; } }
Creates migrations for tables

@param string $table
@return bool
Creates migrations for tables