コード例 #1
0
ファイル: IconsController.php プロジェクト: EMT/see-do
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $icons = Icon::orderBy('created_at', 'desc')->get();
     return view('icons.index', compact('icons'));
 }
コード例 #2
0
ファイル: EventsController.php プロジェクト: EMT/see-do
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  *
  * @return \Illuminate\Http\Response
  */
 public function edit(City $city, Event $event)
 {
     $colorSchemes = ColorScheme::listRaw();
     $icons = Icon::orderBy('created_at', 'desc')->get();
     $categories = Category::where('city_id', $city->id)->orderBy('title', 'asc')->lists('title', 'id');
     return view('events.edit', compact('event', 'categories', 'colorSchemes', 'icons'));
 }