예제 #1
0
 public function index()
 {
     $activities = Activity::all()->take(2);
     $title = trans('default.home');
     $locale = App::getLocale();
     $homeText = HomeText::first();
     $sliders = Slider::all();
     return view('pages.index', compact('title', 'activities', 'locale', 'homeText', 'sliders'));
 }
예제 #2
0
 public function homeTextUpdate(CustomRequest $request)
 {
     $homeText = HomeText::firstOrFail();
     $homeText->update($request->all());
     return redirect(route('admin.homeText'))->with('success', 'Le texte d\'accueil a bien été mis à jour');
 }