public function handleRequest(Request $request, Application $app)
    {
        # Rebuild on every request in dev environment
        if ($this->isAutoRebuildMode($app)) {
            $this->rebuildDatabase();

            return;
        }

        if ($this->dbHasNotBeenBuilt()) {
            $this->rebuildDatabase();

            return;
        }

        if ($this->isValidRebuildRequest($request, $app)) {
            $this->rebuildDatabase();
        }
    }
public function handleRequest(Request $request, Application $app)
    {
        # Rebuild on every request in dev environment
        if ($this->isAutoRebuildMode($app)) {
            $this->rebuildDatabase();

            return;
        }

        if ($this->dbHasNotBeenBuilt()) {
            $this->rebuildDatabase();

            return;
        }

        if ($this->isValidRebuildRequest($request, $app)) {
            $this->rebuildDatabase();
        }
    }
public function handleRequest ( Request $ request , Application $ app ) { # Rebuild on every request in dev environment if ( $ this -> isAutoRebuildMode ( $ app ) ) { $ this -> rebuildDatabase ( ) ; return ; } if ( $ this -> dbHasNotBeenBuilt ( ) ) { $ this -> rebuildDatabase ( ) ; return ; } if ( $ this -> isValidRebuildRequest ( $ request , $ app ) ) { $ this -> rebuildDatabase ( ) ; } }
If the request includes an instruction to rebuild the db, do that

@param Request     $request
@param Application $app
If the request includes an instruction to rebuild the db do that