Qandidate Laravel
![Software License][ico-license]
![Total Downloads][ico-downloads], (*1)
This is a service provider for Qandidate package, (*2)
Install
Via Composer, (*3)
``` bash
$ composer require am2studio/laravel-qandidate, (*4)
Register service provider in your `app.php`
```php
'AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider',
Register the facade in your app.php
, (*5)
'Qandidate' => 'AM2Studio\LaravelQandidate\QandidateFacade',
Publish migration file and run migration, (*6)
php artisan vendor:publish --provider="AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider" --tag="migrations"
php artisan migrate
This package already has a simple CRUD for qandidate and can be accessed through /qandidate/toggle. If you wish to change the prefix or even create your own routes you can publish config file, (*7)
php artisan vendor:publish --provider="AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider" --tag="config"
and disable default routes through defaultRoutes variable or change default prefix through routePrefix variable. If you decide to use defult routes but want to add middleware you can do so through middlewares variable., (*8)
If you don't like default templates, publish views and make changes accordingly., (*9)
php artisan vendor:publish --provider="AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider" --tag="views"
Usage
php
Qandidate::active($featureName, $attributes);
, (*10)
Change log
Please see CHANGELOG for more information what has changed recently., (*11)
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*12)
Credits
License
The MIT License (MIT). Please see License File for more information., (*13)