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 delete(Employee $employee)
    {
        if ($employee->delete()) {
            return redirect('employee_manange')->withMessage('Employee deleted');
        }
        return redirect('employee_manange')->withMessage('Error while deleting');
    }
public function delete ( Employee $ employee ) { if ( $ employee -> delete ( ) ) { return redirect ( 'employee_manange' ) -> withMessage ( 'Employee deleted' ) ; } return redirect ( 'employee_manange' ) -> withMessage ( 'Error while deleting' ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .