public function postUpdate() { $block_content = BlocksContent::find(Input::get('id')); if ($block_content) { $block_content->title = Input::get('title'); $block_content->save(); } return Redirect::back(); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return view('home.index', ['blocks_content' => BlocksContent::all(), 'slider' => Slider::orderBy('weight')->get()]); }