- Frontend: Login, Registration
- Backend: User Management, Simple Role, Profile
- Laravel Breadcrumbs
- Easy flash notifications
- Impersonating users:
- Allowing admins to sign in as other users
- To enable this feature you have to add IMPERSONATE=true to the .env file and update the App/Http/Kernel class.
- Tests
- Clone: git clone https://github.com/rrpadilla/laravel-adminlte-boilerplate.git my-new-project
- cd my-new-project
- Copy .env.example file to .env and edit database credentials and APP_URL
- Run composer install
- Run composer dump-autoload
- Run php artisan key:generate
- Run php artisan migrate --seed
- Testing: Run phpunit
- See UsersControllerTest
- Login with:
- Admin: [email protected] - secret
- Member: [email protected] - secret
- Follow the DOCUMENTATION to see how you can add more Resources (CRUD) to your project.
Laravel | PHP | Breadcrumbs | AdminLTE |
---|---|---|---|
5.6+ | 7.1+ | 5.x | 2.4+ |
- composer install --optimize-autoloader --no-dev
- php artisan config:cache
- php artisan route:cache
- php artisan view:clear
- Run all commands.
- composer install --optimize-autoloader --no-dev && php artisan config:cache && php artisan route:cache && php artisan view:clear
Production - Configuring Trusted Proxies
Change your .env if:
- you're using AWS ELB:
- TRUSTEDPROXY_PROXIES="*"
- TRUSTEDPROXY_HEADERS="HEADER_X_FORWARDED_AWS_ELB"
- IP address (or range) of your proxy
- TRUSTEDPROXY_PROXIES="192.168.1.1,192.168.1.2"
- TRUSTEDPROXY_PROXIES="192.168.1.0/8"
- TRUSTEDPROXY_HEADERS="HEADER_X_FORWARDED_ALL"
- TRUSTEDPROXY_HEADERS="HEADER_FORWARDED"