Clone the repository
git clone [email protected]:ahnayem/phone-book.git
Switch to the repo folder
cd phone-book
Install all the dependencies using composer
composer install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Generate a new application key
php artisan key:generate
Link storage to the public folder
php artisan storage:link
Run the database migrations (Set the database connection in .env before migrating)
php artisan migrate
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
TL;DR command list
git clone [email protected]:ahnayem/phone-book.git
cd phone-book
composer install
cp .env.example .env
php artisan key:generate
php artisan storage:link
Make sure you set the correct database connection information before running the migrations Environment variables
php artisan migrate
php artisan serve
Populate the database with seed data to store admin info, application primary setup info, role, permission etc
Run the database seeder and you're done
php artisan db:seed
Note : It's recommended to have a clean database before seeding. You can refresh your migrations at any point to clean the database by running the following command. If the database already clean then ignore this step.
php artisan migrate:refresh
app
- Contains all the Eloquent modelsapp/Http/Controllers
- Contains all the controllersapp/Http/Middleware
- Contains the middlewareconfig
- Contains all the application configuration filesdatabase/migrations
- Contains all the database migrationsdatabase/seeds
- Contains the database seederroutes
- Contains all the web routes defined in web.php fileresources
- Contains all the view blade filepublic
- Contains all the assets file, storage link foldertests
- Contains all the application tests
.env
- Environment variables can be set in this file
Note : You can quickly set the database information and other variables in this file and have the application fully working.
Initial Admin Pannel credentials.
[email protected]
abcd1234
To Create User follow this link.
http://localhost:8000/register
To Login follow to this link.
http://localhost:8000/login
Feel free to contribute this repo.
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
If you discover a security vulnerability within Laravel, please send an e-mail to me via [email protected]. All security vulnerabilities will be promptly addressed.
The Laravel framework is open-sourced software licensed under the MIT license.