File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ public function index(): View
37
37
public function details (string $ slug ): View |Response
38
38
{
39
39
$ departments = Departments::find ($ slug );
40
- $ staff = StaffProfiles::findByDepartment ($ departments ['data ' ][0 ]['id ' ]);
41
40
if (empty ($ departments ['data ' ])) {
42
41
return response ()->view ('errors.404 ' , [], 404 );
42
+ } else {
43
+ $ staff = StaffProfiles::findByDepartment ($ departments ['data ' ][0 ]['id ' ]);
43
44
}
44
45
return view ('departments.details ' , compact ('departments ' , 'staff ' ));
45
46
}
Original file line number Diff line number Diff line change 474
474
# podcasts
475
475
'/conversations/podcasts/episode ' => '/conversations/podcasts/ ' ,
476
476
# Department changes July 2022
477
- '/ about-us/departments/antiquities ' => '/about-us/departments/collections-and-research ' ,
478
- '/ about-us/departments/applied-arts ' => '/about-us/departments/collections-and-research ' ,
479
- '/ about-us/departments/coins-and-medals ' => '/about-us/departments/collections-and-research ' ,
480
- '/ about-us/departments/manuscripts-and-printed-books ' => '/about-us/departments/collections-and-research ' ,
481
- '/ about-us/departments/paintings-drawings-and-prints ' => '/about-us/departments/collections-and-research ' ,
482
- '/ about-us/departments/research ' => '/about-us/departments/collections-and-research ' ,
477
+ 'about-us/departments/antiquities ' => '/about-us/departments/collections-and-research ' ,
478
+ 'about-us/departments/applied-arts ' => '/about-us/departments/collections-and-research ' ,
479
+ 'about-us/departments/coins-and-medals ' => '/about-us/departments/collections-and-research ' ,
480
+ 'about-us/departments/manuscripts-and-printed-books ' => '/about-us/departments/collections-and-research ' ,
481
+ 'about-us/departments/paintings-drawings-and-prints ' => '/about-us/departments/collections-and-research ' ,
482
+ 'about-us/departments/research ' => '/about-us/departments/collections-and-research ' ,
483
483
],
484
484
485
485
];
You can’t perform that action at this time.
0 commit comments