Package Data | |
---|---|
Maintainer Username: | msamec |
Maintainer Contact: | marko.samec@am2studio.hr (Marko Šamec) |
Package Create Date: | 2016-01-22 |
Package Last Update: | 2016-02-03 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-26 15:05:23 |
Package Statistics | |
---|---|
Total Downloads: | 1,170 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 4 |
Total Forks: | 0 |
Total Open Issues: | 0 |
This is a service provider for Qandidate package
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"
Qandidate::active($featureName, $attributes);
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING and CONDUCT for details.
The MIT License (MIT). Please see License File for more information.