- Clone
git clone https://github.com/abdullahalnahhal/simpleSys. composer install.- Copy
.env (copy).examplefile to be.env. php artisan key:generate.- open your
.envfile then set the DB configuration :DB_DATABASEDB_USERNAMEDB_PASSWORD
php artisan migrate:fresh --seed-
There May be issue in file streaming so :
sudo chmod -R 777 ../simpleSys
-
There may be issue in enabling the rewrite mode So:
sudo a2enmod rewritesudo systemctl restart apache2
- There Two Users With Two Roles Only
Super Admin : which can control all actions
- Name : Super Admin.
- Email : sadmin@admin.com.
- Password : admin.
-
User : Which can control on updating his info and view others only
- Name : Simple User.
- Email : user@admin.com.
- Password : user.
You Will see side bar with dashboard and users that shows the users list
- There Two Directories in
resources/views.-
app: which contains the core files of the app ( pages ).- Each page has a directory, while each page has main scripts[ form - index - view ].
-
layout: which contains layouts and frequent files such as [ footer - header - tables - dropdowns - ... etc ]>
-
- App/Http/Controllers : Which Has controllers [ HomeController - UsersControllers ].
- App/Http/Requests : Which has requests validations [UsersRequest - UsersUpdateRequests].
- App/Models : Which has DB Models [ Roles ].
- App/Policies : Which has user authorization policies for users action.
- App/helpers : Which has common methods that used through app.
- routes/web : routing the non authenticated or general routes.
- routes/users : routing the users routes.