Download the PHP package hqq/scenario without Composer
On this page you can find all versions of the php package hqq/scenario. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package scenario
Scenario For Laravel
-
This package compatible with Laravel
>=5
- This package help you out to make model from database and set scenario for it.
Run the Composer update comand
$ composer require hqq/scenario
Or if you using phpStorm , you can use Tools > Composer > Add Dependency
In your config/app.php
add hqq\scenario\ScenarioServiceProvider::class,
to the end of the $providers
array
Usage cmodel
in artisan console write
php artisan make:cmodel table_name
Example Model
Usage Code
Scenarioo::setRules(AllowedUnits::$rules)
Scenarioo::setScenario(['store','mostafa'])
Scenarioo::Rules()
License
- This package was created and modified by Mostafa Haqiqi && Mehrdad Akbari for Laravel >= 5 and is released under the MIT License.
All versions of scenario with dependencies
PHP Build Version
Package Version
No informations.
The package hqq/scenario contains the following files
Loading the files please wait ....