app/Http/Controllers/EmployeeController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  \App\Models\Employee  $employee
     * @return \Illuminate\Http\Response
     */
Remove the specified resource from storage.
Remove the specified resource from storage .
public function destroy(Employee $employee)
    {
        $employee = Employee::findOrFail($employee->id);
        $employee->delete();
        return redirect('/employees')->with('completed', 'employee has been deleted');
    }
public function destroy ( Employee $ employee ) { $ employee = Employee :: findOrFail ( $ employee -> id ) ; $ employee -> delete ( ) ; return redirect ( '/employees' ) -> with ( 'completed' , 'employee has been deleted' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .