app/Http/Controllers/DepartmentController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Department  $department
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit($id)
    {
        $department = Department::find($id);
        return view('departments.edit',['department' => $department]);
    }
public function edit ( $ id ) { $ department = Department :: find ( $ id ) ; return view ( 'departments.edit' , [ 'department' => $ department ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .