public function rollback()
    {
        if (!Scaffoldinterface::all()->count()) {
            Session::flash('status', 'Nothing To Rollback');

            return redirect('scaffold');
        }

        try {
            Artisan::call('migrate:rollback');
        } catch (\Exception $e) {
            return $e->getMessage();
        }
        $Msg = str_replace("\n", '', Artisan::output());
        Session::flash('status', $Msg);

        return redirect('scaffold');
    }
public function rollback()
    {
        if (!Scaffoldinterface::all()->count()) {
            Session::flash('status', 'Nothing To Rollback');

            return redirect('scaffold');
        }

        try {
            Artisan::call('migrate:rollback');
        } catch (\Exception $e) {
            return $e->getMessage();
        }
        $Msg = str_replace("\n", '', Artisan::output());
        Session::flash('status', $Msg);

        return redirect('scaffold');
    }
public function rollback ( ) { if ( ! Scaffoldinterface :: all ( ) -> count ( ) ) { Session :: flash ( 'status' , 'Nothing To Rollback' ) ; return redirect ( 'scaffold' ) ; } try { Artisan :: call ( 'migrate:rollback' ) ; } catch ( \ Exception $ e ) { return $ e -> getMessage ( ) ; } $ Msg = str_replace ( "\n" , '' , Artisan :: output ( ) ) ; Session :: flash ( 'status' , $ Msg ) ; return redirect ( 'scaffold' ) ; }
Rollback schema.

@throws Exception

@return \Illuminate\Http\Response
Rollback schema .