- Timestamp:
- 10/25/21 12:47:27 (3 years ago)
- Branches:
- develop, master
- Children:
- bdda09f
- Parents:
- b6e0879
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Http/Controllers/Dashboard/DepartmentsController.php
rb6e0879 r233e950 144 144 } 145 145 catch(\Exception $e){ 146 abort(403, "No files found");147 //Alert::flash(" deleted successfully");148 //return redirect()->route("dashboard.departments.index");146 //abort(403, "No files found"); 147 Alert::flash("All departments are empty", "warning"); 148 return redirect()->back(); 149 149 } 150 150 } … … 176 176 } 177 177 catch(\Exception $e){ 178 abort(403, "No files found"); 178 //abort(403, "No files found"); 179 Alert::flash("This department has no files", "warning"); 180 return redirect()->back(); 179 181 } 180 182 }
Note:
See TracChangeset
for help on using the changeset viewer.