public function store() { $itemID = Input::get('id'); $item = $this->getItem($this->type, $itemID); $seo = new Seo(); $seo->updateFromInput(); $item->seo()->save($seo); return Redirect::to('admin/seo/' . $seo->id . '/edit?type=' . $this->type . '&id=' . $itemID)->with('seo_created', true); }
public function addseo() { $model = Input::get('model'); $itemid = Input::get('itemid'); $item = $model::find($itemid); $seo = new Seo(); $seo->updateFromInput(); $item->seo()->save($seo); return Redirect::to('backend/seo')->withMessage($this->notifyView(Lang::get('laracms::messages.seo_added'), 'success')); }