Example #1
0
 public function _edit(Request $request, Map $map)
 {
     $tilesets = Tileset::all();
     $maps = Map::query();
     if ($map->id) {
         $maps->where('id', '!=', $map->id);
     }
     return view('admin.maps.create')->with('map', $map)->with('maps', $maps->get())->with('tilesets', $tilesets);
 }