public function store($input) { $this->setUser(); if (!isset($input['user_id'])) { $input['user_id'] = $this->user->id(); } return parent::store($input); }
public function destroy($id) { Cache::forget('pageMenu'); return parent::destroy($id); }
public function store($input) { $this->setUser(); $input['assigned_by'] = $this->user->id(); return parent::store($input); }