public function store($request)
    {
        $this->fireEvent('creating', [$request]);

        $created = $this->model->create($request);

        $this->fireEvent('created', [$created]);

        return $created;
    }
public function store($request)
    {
        $this->fireEvent('creating', [$request]);

        $created = $this->model->create($request);

        $this->fireEvent('created', [$created]);

        return $created;
    }
public function store ( $ request ) { $ this -> fireEvent ( 'creating' , [ $ request ] ) ; $ created = $ this -> model -> create ( $ request ) ; $ this -> fireEvent ( 'created' , [ $ created ] ) ; return $ created ; }
Store a new resource.

@param  mixed  $request
@return mixed
Store a new resource .