/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $title = trans('default.partners');
     $partnersText = PartnersText::first();
     $categories = PartnersCategory::with('partners')->get();
     return view('partners.index', compact('title', 'partnersText', 'categories'));
 }
 public function textUpdate(CustomRequest $request)
 {
     $text = PartnersText::firstOrFail();
     $text->update($request->all());
     return redirect(route('admin.partnersText'))->with('success', 'Le texte des partenaires a bien été mis à jour');
 }