cleaniquecoders / laravel-boilerplate
Web Application Boilerplate Based on Laravel Framework.
Installs: 61
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 2
Open Issues: 0
Type:project
Requires
- php: >=7.1.3
- andywer/js-localization: dev-laravel-5
- cleaniquecoders/artisan-makers: ^1.1
- cleaniquecoders/blueprint-macro: ^2.2
- cleaniquecoders/laravel-helper: ^1.1
- cleaniquecoders/laravel-observers: ^1.1
- cleaniquecoders/money-wrapper: ^1.1
- cleaniquecoders/profile: ^1.2
- davejamesmiller/laravel-breadcrumbs: ^5.0
- doctrine/dbal: ^2.7
- fideloper/proxy: ~4.0
- laravel/framework: 5.7.*
- laravel/passport: ^6.0
- laravel/tinker: ~1.0
- predis/predis: ^1.1
- softon/sweetalert: ^1.0
- spatie/image-optimizer: ^1.0
- spatie/laravel-activitylog: ^2.3
- spatie/laravel-html: ^2.10
- spatie/laravel-medialibrary: ^7.4
- spatie/laravel-permission: ^2.7
- spatie/laravel-responsecache: ^4.1
- spatie/laravel-sluggable: ^2.1
- thepinecode/i18n: ^0.2.0
- tightenco/ziggy: ^0.6.6
- yajra/laravel-datatables: ^1.1
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.1
- filp/whoops: ~2.0
- fzaninotto/faker: ~1.4
- laravel/dusk: ~3.0
- mockery/mockery: ~1.0
- phpunit/phpunit: ~7.0
- wnx/laravel-stats: ^1.6
README
Laravel Boilerplate
A boilerplate based on Laravel Framework to speed up web application development setup.
Packages
- Cleanique Coders - Artisan Makers
- Cleanique Coders - Blueprint Macro
- Cleanique Coders - Laravel Helper
- Cleanique Coders - Laravel Observers
- Cleanique Coders - Money Wrapper
- Cleanique Coders - Profile
- Spatie - Image Optimizer
- Spatie - Laravel Activitylog
- Spatie - Laravel Html
- Spatie - Laravel Medialibrary
- Spatie - Laravel Permission
- Spatie - Laravel Responsecache
- Spatie - Laravel Sluggable
- Softon - Sweet Alert
- Tighten.Co - Ziggy
Installation
$ composer create-project cleaniquecoders/laravel-boilerplate
Configure your .env
, then:
$ php artisan reload:all -d
Usage
User Accounts
By default, there's no users created. But you can run php artisan db:seed DevelopmentSeeder
to run create 3 main users - Developer, Administrator and User.
Login details for default users:
- E-mail : developer@app.com Password:
developer
- E-mail : administrator@app.com Password:
administrator
- E-mail : user@app.com Password:
user
By default, all newly registered user will be assign role as user
.
Access Control
Access control for the application can be configure from config/acl.php
. It consist of roles
, permissions
and actions
. Default seeder for ACL is in database/seeds/RolesAndPermissionsSeeder.php
. You may overwrite this as you please.
Seeded roles and permissions based on database/seeds/RolesAndPermissionsSeeder.php
will have all guards specify in config/auth.php
.
Commands
There's some commands area ready built-in. Others, may refer to respective packages.
reload:db
- Runmigrate:fresh --seed
withprofile:seed
. You may extend the usage.reload:cache
- Recache everythingreload:all
- Run above two commands. Passing-d
will seedDevelopementSeeder
- useful for development setup.
Routes
Routes has been organised so that you can manage it properly, keep it clean and well organised.
- API Routes -
routes/api
- Breadcrumbs Routes -
routes/breadcrumbs
- Datatable Routes -
routes/datatable
- Web Routes -
routes/web
You may add unlimited files in respective directories above, based on it's concern.
Contributions
Contributions are welcome and will be fully credited.
We accept contributions via Pull Requests on Github.
Pull Requests
-
PSR-2 Coding Standard - The easiest way to apply the conventions is to install PHP Code Sniffer.
-
Add tests! - Your patch won't be accepted if it doesn't have tests.
-
Document any change in behaviour - Make sure the
README.md
and any other relevant documentation are kept up-to-date. -
Consider our release cycle - We try to follow SemVer v2.0.0. Randomly breaking public APIs is not an option.
-
Create feature branches - Don't ask us to pull from your master branch.
-
One pull request per feature - If you want to do more than one thing, send multiple pull requests.
-
Send coherent history - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.
Running Test
$ vendor/bin/phpunit
License
This package is open-sourced software licensed under the MIT license.