src/Http/Controllers/ManyToManyController.php
public function store()
    {
        try {
            $this->gateway->create($this->request);
        } catch (ValidationException $e) {
            return back()->withErrors($e->getErrors())->withInput();
        }
        return redirect(
            route(
                'entrust-gui::'.$this->resource.'.index'
            )
        )->withSuccess(
            trans(
                'entrust-gui::'.$this->resource.'.created'
            )
        );
    }
public function store()
    {
        try {
            $this->gateway->create($this->request);
        } catch (ValidationException $e) {
            return back()->withErrors($e->getErrors())->withInput();
        }
        return redirect(
            route(
                'entrust-gui::'.$this->resource.'.index'
            )
        )->withSuccess(
            trans(
                'entrust-gui::'.$this->resource.'.created'
            )
        );
    }
public function store ( ) { try { $ this -> gateway -> create ( $ this -> request ) ; } catch ( ValidationException $ e ) { return back ( ) -> withErrors ( $ e -> getErrors ( ) ) -> withInput ( ) ; } return redirect ( route ( 'entrust-gui::' . $ this -> resource . '.index' ) ) -> withSuccess ( trans ( 'entrust-gui::' . $ this -> resource . '.created' ) ) ; }
Store a newly created resource in storage.
POST /model

@return Response
Store a newly created resource in storage . POST / model