public function migrate()
    {
        try {
            Artisan::call('migrate', ['--path' => config('amranidev.config.database')]);
            exec('cd '.base_path().' && composer dump-autoload');
        } catch (\Exception $e) {
            Session::flash('status', $e->getMessage());

            return redirect('scaffold');
        }
        $Msg = str_replace("\n", '', Artisan::output());
        Session::flash('status', $Msg);

        return redirect('scaffold');
    }
public function migrate()
    {
        try {
            Artisan::call('migrate', ['--path' => config('amranidev.config.database')]);
            exec('cd '.base_path().' && composer dump-autoload');
        } catch (\Exception $e) {
            Session::flash('status', $e->getMessage());

            return redirect('scaffold');
        }
        $Msg = str_replace("\n", '', Artisan::output());
        Session::flash('status', $Msg);

        return redirect('scaffold');
    }
public function migrate ( ) { try { Artisan :: call ( 'migrate' , [ '--path' => config ( 'amranidev.config.database' ) ] ) ; exec ( 'cd ' . base_path ( ) . ' && composer dump-autoload' ) ; } catch ( \ Exception $ e ) { Session :: flash ( 'status' , $ e -> getMessage ( ) ) ; return redirect ( 'scaffold' ) ; } $ Msg = str_replace ( "\n" , '' , Artisan :: output ( ) ) ; Session :: flash ( 'status' , $ Msg ) ; return redirect ( 'scaffold' ) ; }
Migrate schema.

@return \Illuminate\Http\Response
Migrate schema .