Ignore:
Timestamp:
10/25/21 12:47:27 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
bdda09f
Parents:
b6e0879
Message:

bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    rb6e0879 r233e950  
    144144        }
    145145        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();
    149149    }
    150150    }
     
    176176        }
    177177        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();
    179181        }
    180182    }
Note: See TracChangeset for help on using the changeset viewer.