am2studio / laravel-qandidate
Service provider for qandidate
Installs: 1 170
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- illuminate/support: ~5.1
- laravelcollective/html: ~5.0
- qandidate/toggle: 0.3.0
- symfony/expression-language: 3.0.0
This package is not auto-updated.
Last update: 2024-12-21 20:06:11 UTC
README
This is a service provider for Qandidate package
Install
Via Composer
$ composer require am2studio/laravel-qandidate
Register service provider in your app.php
'AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider',
Register the facade in your app.php
'Qandidate' => 'AM2Studio\LaravelQandidate\QandidateFacade',
Publish migration file and run migration
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
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.
If you don't like default templates, publish views and make changes accordingly.
php artisan vendor:publish --provider="AM2Studio\LaravelQandidate\LaravelQandidateServiceProvider" --tag="views"
Usage
Qandidate::active($featureName, $attributes);
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Credits
License
The MIT License (MIT). Please see License File for more information.