2017 © Pedro Peláez
 

library laravel-qandidate

Service provider for qandidate

image

am2studio/laravel-qandidate

Service provider for qandidate

  • Wednesday, February 3, 2016
  • by msamec
  • Repository
  • 3 Watchers
  • 1 Stars
  • 1,158 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Qandidate Laravel

Latest Version on Packagist ![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)

The Versions