/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $types = FileType::where('image', 1)->get(); return view('admin.blog.posts.createPost', ['types' => $types]); }