public function home() { $photos = Photo::recent(); $article = Article::recent(); return view('pages.home', compact('photos', 'article')); }
protected function makePhoto(UploadedFile $file) { return Photo::named($file->getClientOriginalName())->move($file); }