/**
  * Store a newly created resource in storage.
  *
  * @param  Request $request
  * @return Response
  */
 public function store(Requests\CreatePage $request)
 {
     $pageCreated = $this->pageRepository->model->create($request->except('_token', 'image_first', 'image_second'));
     $imagesCreated = $this->dispatch(new CreateImage($pageCreated, $request));
     if ($pageCreated) {
         return redirect()->back()->with(['success' => 'success-page-created']);
     }
     return redirect()->back()->with(['error' => 'error-page-created']);
 }
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(CreatePage $request)
 {
     $page = $this->page->create($request->all());
     return redirect('admin/page/' . $page->id)->with(array('status' => 'success', 'message' => 'La page a été crée'));
 }