/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create($id) { // $season = Season::find($id); $sites_dik = LinkedSite::all(); $sites = []; foreach ($sites_dik as $site) { $sites[$site['id']] = $site['name']; } return view('admin.createAnimu', with(['season_id' => $id, 'sites' => $sites])); }
public function index() { $sites = LinkedSite::all(); return view('admin.list', with(['items' => $sites, 'title' => 'Prehled linkovanych webu', 'name' => 'linkedSite'])); }