Skip to content

Laravel departmental notes system with role-based access control

Notifications You must be signed in to change notification settings

pedroriverove/laravel-basic-notes

Repository files navigation

Laravel departmental notes system with role-based access control

Requirements

This uses Laravel 10.x, Please make sure your server meets the requirements before installing.

  • PHP >= 8.1
  • Composer

Installation

Clone the repo and cd into it

git clone https://github.com/pedroriverove/laravel-basic-notes.git
cd laravel-basic-notes

Install composer dependencies

composer install

In this app, we don't use npm or yarn, we use cdn instead

Create a copy of your .env file

cp .env.example .env

Set your database credentials in your .env file

change the following lines in your .env file

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_dbname
DB_USERNAME=your_dbuser
DB_PASSWORD=your_dbpassword

Generate an app encryption key

php artisan key:generate

Migrate the database and seed

php artisan migrate
php artisan db:seed

Database seeding randomly loads data for the following entities:

  • Departments: customer service, human resources, sales, cleaning, recycling plant
  • Roles: manager, supervisor, employee
  • Users: All users are created with the password: password
  • Clients.
  • Notes.

Link storage folder

php artisan storage:link

Run the server

php artisan serve

Login credentials for super admin

Visit 127.0.0.1:8000 in your browser and login with the following credentials:

email: admin@example.com
password: password

Screenshot