/** * Display a listing of the resource. * * @return Response */ public function index() { $icon = Icon::orderBy('id', 'asc')->get(); return view('admin.contents.blog.icon.index')->with('icons', $icon); }
/** * Show the form for creating a new resource. * * @return Response */ public function create() { $icons = Icon::orderBy('name', 'asc')->get(); $tags = Tag::orderBy('name', 'asc')->get(); return view('admin.contents.blog.article.create')->with('icons', $icons)->with('tags', $tags); }