app/Http/Controllers/DepartmentController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Department  $department
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy($id)
    {
        $udepartment = department::destroy($id);
        return redirect()->route('departments.index');
    }
public function destroy ( $ id ) { $ udepartment = department :: destroy ( $ id ) ; return redirect ( ) -> route ( 'departments.index' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .