Provides a simple /backend
page with login and simple user management to add or remove other admins with access to the backend. The default credentials are admin
/admin
if nothing else is set in the environment variables. The superadmin won't be visible in the admins table in the backend and cannot be deleted.
composer install
npm install
gulp
- Create an
.env
file in the root dir and add the following:
APP_ENV=local
APP_DEBUG=true
APP_KEY=anyRandomKey
ADMIN_USER=admin
ADMIN_PASS=admin
DB_HOST=localhost
DB_DATABASE=example
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
- Edit the DB credentials and prefered admin credentials as needed.
- Create a new application key by running
php artisan key:generate
php artisan migrate
php artisan serve
- Enjoy!
The Laravel framework is open-sourced software licensed under the MIT license so the same goes for this project.