AcProjectsController::store PHP Метод

store() публичный Метод

Store a newly created resource in storage.
public store ( ) : Response
Результат Response
    public function store()
    {
        // $this->acProject = app('AcProject');
        $this->acProject->fill(request()->except('_method', '_token'));
        try {
            $this->acProject->save();
            return redirect()->route('ac_projects.index');
        } catch (Exception $e) {
            return redirect()->route('ac_projects.create')->withErrors($this->acProject->errors())->with('message', 'There were validation errors.');
        }
    }