AM2studio / Laravel-Qandidate by msamec

Service provider for qandidate
1,170
1
4
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

Qandidate Laravel

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.