Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     return view('home.index', ['blocks_content' => BlocksContent::all(), 'slider' => Slider::orderBy('weight')->get()]);
 }