src/Http/Controllers/BaseAdminController.php
protected function redirect($request, $model)
    {
        if (is_array($model)) {
            $model = end($model);
        }
        $redirectUrl = $request->get('exit') ? $model->indexUrl() : $model->editUrl();

        return redirect($redirectUrl);
    }
protected function redirect($request, $model)
    {
        if (is_array($model)) {
            $model = end($model);
        }
        $redirectUrl = $request->get('exit') ? $model->indexUrl() : $model->editUrl();

        return redirect($redirectUrl);
    }
protected function redirect ( $ request , $ model ) { if ( is_array ( $ model ) ) { $ model = end ( $ model ) ; } $ redirectUrl = $ request -> get ( 'exit' ) ? $ model -> indexUrl ( ) : $ model -> editUrl ( ) ; return redirect ( $ redirectUrl ) ; }
Redirect after a form is saved.

@param $request
@param $model

@return \Illuminate\Http\RedirectResponse
Redirect after a form is saved .