Laravel Add App
Introduction
This is a simple Laravel App. it helps users to share their adds with others.
Basic functionalities:
-
Auth:
You can register new account, login with existing one and logout from logged account. -
Adds:
As a user: view, store, update, publish, unpublish (own adds) - view, comment (others' adds)
As an admin: view, comment, delete all adds.
- Users:
As an admin: You can (list, activate, deactivate) users' accounts.
Installation
- Clone the repository:
https://github.com/OpadaAlzaiede/add-app.git- Install all dependencies:
composer install- Copy .env.example file to .env file:
cp .env.example .env- Generate the application key:
php artisan key:generate
-
Setup database environment variables in .env file:
-
Run migration files:
php artisan migrate:fresh
- to seed needed roles to the database run:
php artisan role:seed
- to create admin account run:
php artisan admin:create
- to seed the database with some data run (optionally):
php artisan db:seed
- to create a link to your storage run:
php artisan storage:link
** You should create a new database with the name provided to the DB_DATABASE varaiable in you DBMS server **
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=your_database_name
DB_USERNAME=your_database_username
DB_PASSWORD=your_database_username_password- Run the server:
php artisan serve
On this page
Contributors
Created October 2, 2023
Updated October 2, 2023