am2studio/laravel-qandidate

Service provider for qandidate

1.0.1 2016-02-03 18:36 UTC

This package is not auto-updated.

Last update: 2024-04-13 16:12:50 UTC


README

Latest Version on Packagist Software License Total Downloads

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.