This is simple demo repository for laravel web application made with Laravel Framework 7.0 for new Laravel developer which includes demo of backend CMS with frontend with Vuejs. This repository contains demo implementation of Laravel policies, eloquent, Mailing, real time notification with laravel-echo-json with some example of feature tests.
First of all copy .env.example to .env
cp .env.example .envand change database, mail & redis configuration according to your setup
now add require packages with command (hope composer is already installed in your system)
composer installRun migration with
php artisan migrateRun seeder with
php artisan db:seednow install to install package.json dependencies
npm installThats all for project setup
Now to bundle all dependencies with web pack into a single file
npm run devSince this project also includes demo for realtime notification with laravel-echo-server make sure redis is installed and is running in background. Now install laravel-echo-server through npm globally.
npm i -g laravel-echo-serverafter that in file named laravel-echo-server.json which is in root of project change authHost key's value and put your laravel application running host name or if you are running php artisan serve command http://127.0.0.1:8000. Now, to run laravel-echo-server
laravel-echo-server startyour laravel echo server will run now.
To run test first of all set test environment in .env
DB_TEST_DRIVER=mysql
DB_TEST_Database=test_db_nameand run
php artisan testPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Released under the MIT License - see LICENSE.txt for details.