Changeset 233e950
- Timestamp:
- 10/25/21 12:47:27 (3 years ago)
- Branches:
- develop, master
- Children:
- bdda09f
- Parents:
- b6e0879
- Files:
-
- 3 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 } -
app/Http/Controllers/Dashboard/FoldersController.php
rb6e0879 r233e950 303 303 } 304 304 catch (\Exception $e) { 305 abort(403, "No files found"); 305 //abort(403, "No files found"); 306 Alert::flash("This folder has no files", "warning"); 307 return redirect()->back(); 306 308 } 307 309 } -
database/factories/FolderFactory.php
rb6e0879 r233e950 30 30 $deptId = Arr::random($inputArray); 31 31 32 //$deptId = $this->faker->numberBetween(1, 10); 33 32 34 $deptCode = Department::find($deptId)->code; 33 35
Note:
See TracChangeset
for help on using the changeset viewer.