pms module status dynamic
This commit is contained in:
@ -110,8 +110,14 @@ class LeaveController extends Controller
|
||||
*/
|
||||
public function destroy($id)
|
||||
{
|
||||
$this->leaveRepository->delete($id);
|
||||
try {
|
||||
$this->leaveRepository->delete($id);
|
||||
|
||||
toastr()->success('Leave Deleted Succesfully');
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
toastr()->error($th->getMessage());
|
||||
}
|
||||
|
||||
toastr()->success('Leave Deleted Succesfully');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user