forked from aslan/applicant-site
prodV1 #2
|
@ -38,8 +38,7 @@ class EducationLevelController extends Controller
|
|||
|
||||
public function show(
|
||||
EducationLevel $educationLevel
|
||||
): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||
{
|
||||
): View|Application|Factory|\Illuminate\Contracts\Foundation\Application {
|
||||
$directions = $educationLevel->directions();
|
||||
return view(
|
||||
'admin.catalog.education_level.show',
|
||||
|
@ -66,7 +65,7 @@ class EducationLevelController extends Controller
|
|||
|
||||
public function destroy(EducationLevel $educationLevel)
|
||||
{
|
||||
if($educationLevel->directions()->exists()) {
|
||||
if ($educationLevel->directions()->exists()) {
|
||||
return back();
|
||||
}
|
||||
$educationLevel->delete();
|
||||
|
|
Loading…
Reference in New Issue