Timezone is test package. An all steps is followed step by steps which are mentioned on documentation
Version reference we will use dev-master for now.
For this package and for leading other Signum package we should define repository information before installation. Inside application composer.json file we should declare repositories information.
composer.json Repository declaration example for both git and svn
"repositories":[
{
"url": "https://github.com/alihuseyn/timezone.git",
"type": "git"
},
{
"url": "http://svn.signumtte.com/svn:8000/timezone",
"type": "svn"
}
],$ composer require signum/timezone dev-master Inside config/app.php edit service provider for Timezone
'providers' => [
...
Signum\Timezone\TimezoneServiceProvider::class,
..
]After that autoload composer again
$ composer dump-autoloadPublish resources and assets
$ php artisan vendor:publish --provider="Signum\Timezone\TimezoneServiceProvider"For documentation please contact with SignumTTE
For a test laravel project add package and then type
php artisan serve| Cases For Controller | Case For Middleware |
|---|---|
| localhost:8000/timezone | localhost:8000/timezone?user=admin |
Wish u best ;)