From 7d92c6887015bece285ee1d49872ffe136525df7 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Tue, 20 Jun 2017 15:03:51 -0500 Subject: [PATCH] #12 #16 settings service and timezone/currency setting --- .../Controllers/Admin/FlightController.php | 1 - composer.json | 3 +- composer.lock | 1248 +++++++++-------- config/app.php | 2 + config/phpvms.php | 47 + config/settings.php | 22 + ...015_08_25_172600_create_settings_table.php | 45 + storage/settings.json | 1 + 8 files changed, 766 insertions(+), 603 deletions(-) create mode 100644 config/phpvms.php create mode 100644 config/settings.php create mode 100644 database/migrations/2015_08_25_172600_create_settings_table.php create mode 100644 storage/settings.json diff --git a/app/Http/Controllers/Admin/FlightController.php b/app/Http/Controllers/Admin/FlightController.php index c8f3b581..3eb4322c 100644 --- a/app/Http/Controllers/Admin/FlightController.php +++ b/app/Http/Controllers/Admin/FlightController.php @@ -50,7 +50,6 @@ class FlightController extends BaseController { $this->flightRepository->pushCriteria(new RequestCriteria($request)); $flights = $this->flightRepository->all(); - return view('admin.flights.index') ->with('flights', $flights); } diff --git a/composer.json b/composer.json index 6bb02c47..59930500 100755 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "spatie/laravel-pjax": "^1.3", "symfony/yaml": "^3.3", "league/geotools": "@stable", - "toin0u/geotools-laravel": "^1.0" + "toin0u/geotools-laravel": "^1.0", + "anlutro/l4-settings": "^0.5.0" }, "require-dev": { "fzaninotto/faker": "~1.4", diff --git a/composer.lock b/composer.lock index 2f14d4cc..796ec15b 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,54 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "d610021bf9d6774b183dd95074a9ee94", + "content-hash": "9ec497716dbe3bf2627251c5534c5c3c", "packages": [ + { + "name": "anlutro/l4-settings", + "version": "0.5.0", + "source": { + "type": "git", + "url": "https://github.com/anlutro/laravel-settings.git", + "reference": "8bbaa98a7962e0e6106eb98aae03cfcabe78d848" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/anlutro/laravel-settings/zipball/8bbaa98a7962e0e6106eb98aae03cfcabe78d848", + "reference": "8bbaa98a7962e0e6106eb98aae03cfcabe78d848", + "shasum": "" + }, + "require": { + "illuminate/support": ">=4.1 <6.0", + "php": ">=5.3.0" + }, + "require-dev": { + "illuminate/database": ">=4.1 <6.0", + "illuminate/filesystem": ">=4.1 <6.0", + "mockery/mockery": "0.9.*" + }, + "suggest": { + "illuminate/database": "Save settings to a database table.", + "illuminate/filesystem": "Save settings to a JSON file." + }, + "type": "library", + "autoload": { + "psr-4": { + "anlutro\\LaravelSettings\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Lutro", + "email": "anlutro@gmail.com" + } + ], + "description": "Persistent settings in Laravel.", + "time": "2017-03-06T09:37:21+00:00" + }, { "name": "barryvdh/laravel-ide-helper", "version": "v2.3.2", @@ -591,67 +637,6 @@ ], "time": "2014-09-09T13:34:57+00:00" }, - { - "name": "dompdf/dompdf", - "version": "v0.7.0", - "source": { - "type": "git", - "url": "https://github.com/dompdf/dompdf.git", - "reference": "5c98652b1a5beb7e3cc8ec35419b2828dd63ab14" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/dompdf/dompdf/zipball/5c98652b1a5beb7e3cc8ec35419b2828dd63ab14", - "reference": "5c98652b1a5beb7e3cc8ec35419b2828dd63ab14", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-gd": "*", - "ext-mbstring": "*", - "phenx/php-font-lib": "0.4.*", - "phenx/php-svg-lib": "0.1.*", - "php": ">=5.3.0" - }, - "require-dev": { - "phpunit/phpunit": "3.7.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-develop": "0.7-dev" - } - }, - "autoload": { - "psr-4": { - "Dompdf\\": "src/" - }, - "classmap": [ - "lib/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL-2.1" - ], - "authors": [ - { - "name": "Fabien Ménager", - "email": "fabien.menager@gmail.com" - }, - { - "name": "Brian Sweeney", - "email": "eclecticgeek@gmail.com" - }, - { - "name": "Gabriel Bull", - "email": "me@gabrielbull.com" - } - ], - "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", - "homepage": "https://github.com/dompdf/dompdf", - "time": "2016-05-11T00:36:29+00:00" - }, { "name": "egeloen/http-adapter", "version": "0.8.0", @@ -861,7 +846,7 @@ "laravel", "templates" ], - "time": "2017-05-20T10:43:37+00:00" + "time": "2017-05-20 10:43:37" }, { "name": "infyomlabs/laravel-generator", @@ -916,7 +901,7 @@ "test", "view" ], - "time": "2016-08-18T14:19:50+00:00" + "time": "2016-08-18 14:19:50" }, { "name": "infyomlabs/swagger-generator", @@ -953,65 +938,7 @@ "swagger", "templates" ], - "time": "2016-02-14T10:41:03+00:00" - }, - { - "name": "jeremeamia/SuperClosure", - "version": "2.3.0", - "source": { - "type": "git", - "url": "https://github.com/jeremeamia/super_closure.git", - "reference": "443c3df3207f176a1b41576ee2a66968a507b3db" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/443c3df3207f176a1b41576ee2a66968a507b3db", - "reference": "443c3df3207f176a1b41576ee2a66968a507b3db", - "shasum": "" - }, - "require": { - "nikic/php-parser": "^1.2|^2.0|^3.0", - "php": ">=5.4", - "symfony/polyfill-php56": "^1.0" - }, - "require-dev": { - "phpunit/phpunit": "^4.0|^5.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-4": { - "SuperClosure\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jeremy Lindblom", - "email": "jeremeamia@gmail.com", - "homepage": "https://github.com/jeremeamia", - "role": "Developer" - } - ], - "description": "Serialize Closure objects, including their context and binding", - "homepage": "https://github.com/jeremeamia/super_closure", - "keywords": [ - "closure", - "function", - "lambda", - "parser", - "serializable", - "serialize", - "tokenizer" - ], - "time": "2016-12-07T09:37:55+00:00" + "time": "2016-02-14 10:41:03" }, { "name": "jlapp/swaggervel", @@ -1056,7 +983,7 @@ "laravel", "swagger" ], - "time": "2016-01-25T15:38:17+00:00" + "time": "2016-01-25 15:38:17" }, { "name": "laracasts/flash", @@ -1367,70 +1294,6 @@ ], "time": "2017-04-28T10:15:08+00:00" }, - { - "name": "league/fractal", - "version": "0.16.0", - "source": { - "type": "git", - "url": "https://github.com/thephpleague/fractal.git", - "reference": "d0445305e308d9207430680acfd580557b679ddc" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/thephpleague/fractal/zipball/d0445305e308d9207430680acfd580557b679ddc", - "reference": "d0445305e308d9207430680acfd580557b679ddc", - "shasum": "" - }, - "require": { - "php": ">=5.4" - }, - "require-dev": { - "doctrine/orm": "^2.5", - "illuminate/contracts": "~5.0", - "mockery/mockery": "~0.9", - "pagerfanta/pagerfanta": "~1.0.0", - "phpunit/phpunit": "~4.0", - "squizlabs/php_codesniffer": "~1.5", - "zendframework/zend-paginator": "~2.3" - }, - "suggest": { - "illuminate/pagination": "The Illuminate Pagination component.", - "pagerfanta/pagerfanta": "Pagerfanta Paginator", - "zendframework/zend-paginator": "Zend Framework Paginator" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.13-dev" - } - }, - "autoload": { - "psr-4": { - "League\\Fractal\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Phil Sturgeon", - "email": "me@philsturgeon.uk", - "homepage": "http://philsturgeon.uk/", - "role": "Developer" - } - ], - "description": "Handle the output of complex data structures ready for API output.", - "homepage": "http://fractal.thephpleague.com/", - "keywords": [ - "api", - "json", - "league", - "rest" - ], - "time": "2017-03-12T01:28:43+00:00" - }, { "name": "league/geotools", "version": "0.7.0", @@ -1505,74 +1368,6 @@ ], "time": "2016-02-03T16:31:33+00:00" }, - { - "name": "maatwebsite/excel", - "version": "2.1.17", - "source": { - "type": "git", - "url": "https://github.com/Maatwebsite/Laravel-Excel.git", - "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", - "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", - "shasum": "" - }, - "require": { - "illuminate/cache": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/config": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/filesystem": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "jeremeamia/superclosure": "^2.3", - "nesbot/carbon": "~1.0", - "php": ">=5.5", - "phpoffice/phpexcel": "1.8.*", - "tijsverkoyen/css-to-inline-styles": "~2.0" - }, - "require-dev": { - "mockery/mockery": "~0.9", - "orchestra/testbench": "3.1.*", - "phpseclib/phpseclib": "~1.0", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "illuminate/http": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/queue": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/routing": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", - "illuminate/view": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*" - }, - "type": "library", - "autoload": { - "classmap": [ - "src/Maatwebsite/Excel" - ], - "psr-0": { - "Maatwebsite\\Excel\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL" - ], - "authors": [ - { - "name": "Maatwebsite.nl", - "email": "patrick@maatwebsite.nl" - } - ], - "description": "An eloquent way of importing and exporting Excel and CSV in Laravel 4 with the power of PHPExcel", - "keywords": [ - "PHPExcel", - "batch", - "csv", - "excel", - "export", - "import", - "laravel" - ], - "time": "2017-04-04T18:28:12+00:00" - }, { "name": "monolog/monolog", "version": "1.23.0", @@ -1748,57 +1543,6 @@ ], "time": "2017-01-16T07:55:07+00:00" }, - { - "name": "nikic/php-parser", - "version": "v3.0.5", - "source": { - "type": "git", - "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2b9e2f71b722f7c53918ab0c25f7646c2013f17d", - "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.5" - }, - "require-dev": { - "phpunit/phpunit": "~4.0|~5.0" - }, - "bin": [ - "bin/php-parse" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.0-dev" - } - }, - "autoload": { - "psr-4": { - "PhpParser\\": "lib/PhpParser" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Nikita Popov" - } - ], - "description": "A PHP parser written in PHP", - "keywords": [ - "parser", - "php" - ], - "time": "2017-03-05T18:23:57+00:00" - }, { "name": "paragonie/random_compat", "version": "v2.0.10", @@ -1847,131 +1591,6 @@ ], "time": "2017-03-13T16:27:32+00:00" }, - { - "name": "phenx/php-font-lib", - "version": "0.4", - "source": { - "type": "git", - "url": "https://github.com/PhenX/php-font-lib.git", - "reference": "b8af0cacdc3cbf1e41a586fcb78f506f4121a088" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PhenX/php-font-lib/zipball/b8af0cacdc3cbf1e41a586fcb78f506f4121a088", - "reference": "b8af0cacdc3cbf1e41a586fcb78f506f4121a088", - "shasum": "" - }, - "type": "library", - "autoload": { - "psr-0": { - "FontLib\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL-3.0" - ], - "authors": [ - { - "name": "Fabien Ménager", - "email": "fabien.menager@gmail.com" - } - ], - "description": "A library to read, parse, export and make subsets of different types of font files.", - "homepage": "https://github.com/PhenX/php-font-lib", - "time": "2015-05-06T20:02:39+00:00" - }, - { - "name": "phenx/php-svg-lib", - "version": "0.1", - "source": { - "type": "git", - "url": "https://github.com/PhenX/php-svg-lib.git", - "reference": "b419766515b3426c6da74b0e29e93d71c4f17099" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PhenX/php-svg-lib/zipball/b419766515b3426c6da74b0e29e93d71c4f17099", - "reference": "b419766515b3426c6da74b0e29e93d71c4f17099", - "shasum": "" - }, - "type": "library", - "autoload": { - "psr-0": { - "Svg\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL-3.0" - ], - "authors": [ - { - "name": "Fabien Ménager", - "email": "fabien.menager@gmail.com" - } - ], - "description": "A library to read, parse and export to PDF SVG files.", - "homepage": "https://github.com/PhenX/php-svg-lib", - "time": "2015-05-06T18:49:49+00:00" - }, - { - "name": "phpoffice/phpexcel", - "version": "1.8.1", - "source": { - "type": "git", - "url": "https://github.com/PHPOffice/PHPExcel.git", - "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/372c7cbb695a6f6f1e62649381aeaa37e7e70b32", - "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32", - "shasum": "" - }, - "require": { - "ext-xml": "*", - "ext-xmlwriter": "*", - "php": ">=5.2.0" - }, - "type": "library", - "autoload": { - "psr-0": { - "PHPExcel": "Classes/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "LGPL" - ], - "authors": [ - { - "name": "Maarten Balliauw", - "homepage": "http://blog.maartenballiauw.be" - }, - { - "name": "Mark Baker" - }, - { - "name": "Franck Lefevre", - "homepage": "http://blog.rootslabs.net" - }, - { - "name": "Erik Tilt" - } - ], - "description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", - "homepage": "http://phpexcel.codeplex.com", - "keywords": [ - "OpenXML", - "excel", - "php", - "spreadsheet", - "xls", - "xlsx" - ], - "time": "2015-05-01T07:00:55+00:00" - }, { "name": "prettus/l5-repository", "version": "2.6.18", @@ -3102,62 +2721,6 @@ ], "time": "2017-06-09T14:24:12+00:00" }, - { - "name": "symfony/polyfill-php56", - "version": "v1.4.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php56.git", - "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/bc0b7d6cb36b10cfabb170a3e359944a95174929", - "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "symfony/polyfill-util": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php56\\": "" - }, - "files": [ - "bootstrap.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "time": "2017-06-09T08:25:21+00:00" - }, { "name": "symfony/polyfill-php70", "version": "v1.4.0", @@ -3217,58 +2780,6 @@ ], "time": "2017-06-09T14:24:12+00:00" }, - { - "name": "symfony/polyfill-util", - "version": "v1.4.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-util.git", - "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", - "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.4-dev" - } - }, - "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Util\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony utilities for portability of PHP codes", - "homepage": "https://symfony.com", - "keywords": [ - "compat", - "compatibility", - "polyfill", - "shim" - ], - "time": "2017-06-09T08:25:21+00:00" - }, { "name": "symfony/process", "version": "v3.3.2", @@ -3948,66 +3459,6 @@ ], "time": "2015-12-06T20:17:20+00:00" }, - { - "name": "yajra/laravel-datatables-oracle", - "version": "v6.24.1", - "source": { - "type": "git", - "url": "https://github.com/yajra/laravel-datatables.git", - "reference": "593a9205c7d9816d2d8b639ca08000ae5c5f378c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/yajra/laravel-datatables/zipball/593a9205c7d9816d2d8b639ca08000ae5c5f378c", - "reference": "593a9205c7d9816d2d8b639ca08000ae5c5f378c", - "shasum": "" - }, - "require": { - "dompdf/dompdf": "^0.7", - "illuminate/database": "~5.0", - "illuminate/filesystem": "~5.0", - "illuminate/http": "~5.0", - "illuminate/support": "~5.0", - "illuminate/view": "~5.0", - "laravelcollective/html": "~5.0", - "league/fractal": "~0.14", - "maatwebsite/excel": "^2.0", - "php": ">=5.5.9" - }, - "require-dev": { - "mockery/mockery": "~0.9", - "phpunit/phpunit": "~4.0" - }, - "suggest": { - "barryvdh/laravel-snappy": "Allows exporting of dataTable to PDF using the print view." - }, - "type": "library", - "autoload": { - "psr-4": { - "Yajra\\Datatables\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Arjay Angeles", - "email": "aqangeles@gmail.com" - } - ], - "description": "jQuery DataTables API for Laravel 4|5", - "keywords": [ - "datatable", - "datatables", - "datatables jquery plugin", - "laravel", - "laravel4", - "laravel5" - ], - "time": "2017-01-24T02:46:52+00:00" - }, { "name": "zendframework/zend-diactoros", "version": "1.4.0", @@ -4188,7 +3639,7 @@ "permission", "roles" ], - "time": "2016-12-29T06:25:06+00:00" + "time": "2016-12-29 06:25:06" } ], "packages-dev": [ @@ -4246,6 +3697,67 @@ ], "time": "2015-06-14T21:17:01+00:00" }, + { + "name": "dompdf/dompdf", + "version": "v0.7.0", + "source": { + "type": "git", + "url": "https://github.com/dompdf/dompdf.git", + "reference": "5c98652b1a5beb7e3cc8ec35419b2828dd63ab14" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dompdf/dompdf/zipball/5c98652b1a5beb7e3cc8ec35419b2828dd63ab14", + "reference": "5c98652b1a5beb7e3cc8ec35419b2828dd63ab14", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-gd": "*", + "ext-mbstring": "*", + "phenx/php-font-lib": "0.4.*", + "phenx/php-svg-lib": "0.1.*", + "php": ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit": "3.7.*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "0.7-dev" + } + }, + "autoload": { + "psr-4": { + "Dompdf\\": "src/" + }, + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + }, + { + "name": "Brian Sweeney", + "email": "eclecticgeek@gmail.com" + }, + { + "name": "Gabriel Bull", + "email": "me@gabrielbull.com" + } + ], + "description": "DOMPDF is a CSS 2.1 compliant HTML to PDF converter", + "homepage": "https://github.com/dompdf/dompdf", + "time": "2016-05-11T00:36:29+00:00" + }, { "name": "fzaninotto/faker", "version": "v1.6.0", @@ -4339,6 +3851,64 @@ ], "time": "2015-05-11T14:41:42+00:00" }, + { + "name": "jeremeamia/SuperClosure", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/jeremeamia/super_closure.git", + "reference": "443c3df3207f176a1b41576ee2a66968a507b3db" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/jeremeamia/super_closure/zipball/443c3df3207f176a1b41576ee2a66968a507b3db", + "reference": "443c3df3207f176a1b41576ee2a66968a507b3db", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^1.2|^2.0|^3.0", + "php": ">=5.4", + "symfony/polyfill-php56": "^1.0" + }, + "require-dev": { + "phpunit/phpunit": "^4.0|^5.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.3-dev" + } + }, + "autoload": { + "psr-4": { + "SuperClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia", + "role": "Developer" + } + ], + "description": "Serialize Closure objects, including their context and binding", + "homepage": "https://github.com/jeremeamia/super_closure", + "keywords": [ + "closure", + "function", + "lambda", + "parser", + "serializable", + "serialize", + "tokenizer" + ], + "time": "2016-12-07T09:37:55+00:00" + }, { "name": "laravel/homestead", "version": "v5.4.0", @@ -4389,6 +3959,138 @@ "description": "A virtual machine for web artisans.", "time": "2017-06-09T13:53:37+00:00" }, + { + "name": "league/fractal", + "version": "0.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/fractal.git", + "reference": "d0445305e308d9207430680acfd580557b679ddc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/fractal/zipball/d0445305e308d9207430680acfd580557b679ddc", + "reference": "d0445305e308d9207430680acfd580557b679ddc", + "shasum": "" + }, + "require": { + "php": ">=5.4" + }, + "require-dev": { + "doctrine/orm": "^2.5", + "illuminate/contracts": "~5.0", + "mockery/mockery": "~0.9", + "pagerfanta/pagerfanta": "~1.0.0", + "phpunit/phpunit": "~4.0", + "squizlabs/php_codesniffer": "~1.5", + "zendframework/zend-paginator": "~2.3" + }, + "suggest": { + "illuminate/pagination": "The Illuminate Pagination component.", + "pagerfanta/pagerfanta": "Pagerfanta Paginator", + "zendframework/zend-paginator": "Zend Framework Paginator" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "0.13-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Fractal\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Phil Sturgeon", + "email": "me@philsturgeon.uk", + "homepage": "http://philsturgeon.uk/", + "role": "Developer" + } + ], + "description": "Handle the output of complex data structures ready for API output.", + "homepage": "http://fractal.thephpleague.com/", + "keywords": [ + "api", + "json", + "league", + "rest" + ], + "time": "2017-03-12T01:28:43+00:00" + }, + { + "name": "maatwebsite/excel", + "version": "2.1.17", + "source": { + "type": "git", + "url": "https://github.com/Maatwebsite/Laravel-Excel.git", + "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Maatwebsite/Laravel-Excel/zipball/14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", + "reference": "14d5abf8e20563c80dd074fd7c8cf1c05bf51f1d", + "shasum": "" + }, + "require": { + "illuminate/cache": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/config": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/filesystem": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/support": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "jeremeamia/superclosure": "^2.3", + "nesbot/carbon": "~1.0", + "php": ">=5.5", + "phpoffice/phpexcel": "1.8.*", + "tijsverkoyen/css-to-inline-styles": "~2.0" + }, + "require-dev": { + "mockery/mockery": "~0.9", + "orchestra/testbench": "3.1.*", + "phpseclib/phpseclib": "~1.0", + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "illuminate/http": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/queue": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/routing": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*", + "illuminate/view": "5.0.*|5.1.*|5.2.*|5.3.*|5.4.*" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/Maatwebsite/Excel" + ], + "psr-0": { + "Maatwebsite\\Excel\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL" + ], + "authors": [ + { + "name": "Maatwebsite.nl", + "email": "patrick@maatwebsite.nl" + } + ], + "description": "An eloquent way of importing and exporting Excel and CSV in Laravel 4 with the power of PHPExcel", + "keywords": [ + "PHPExcel", + "batch", + "csv", + "excel", + "export", + "import", + "laravel" + ], + "time": "2017-04-04T18:28:12+00:00" + }, { "name": "mockery/mockery", "version": "0.9.9", @@ -4496,6 +4198,125 @@ ], "time": "2017-04-12T18:52:22+00:00" }, + { + "name": "nikic/php-parser", + "version": "v3.0.5", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2b9e2f71b722f7c53918ab0c25f7646c2013f17d", + "reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "~4.0|~5.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "time": "2017-03-05T18:23:57+00:00" + }, + { + "name": "phenx/php-font-lib", + "version": "0.4", + "source": { + "type": "git", + "url": "https://github.com/PhenX/php-font-lib.git", + "reference": "b8af0cacdc3cbf1e41a586fcb78f506f4121a088" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PhenX/php-font-lib/zipball/b8af0cacdc3cbf1e41a586fcb78f506f4121a088", + "reference": "b8af0cacdc3cbf1e41a586fcb78f506f4121a088", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "FontLib\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse, export and make subsets of different types of font files.", + "homepage": "https://github.com/PhenX/php-font-lib", + "time": "2015-05-06T20:02:39+00:00" + }, + { + "name": "phenx/php-svg-lib", + "version": "0.1", + "source": { + "type": "git", + "url": "https://github.com/PhenX/php-svg-lib.git", + "reference": "b419766515b3426c6da74b0e29e93d71c4f17099" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PhenX/php-svg-lib/zipball/b419766515b3426c6da74b0e29e93d71c4f17099", + "reference": "b419766515b3426c6da74b0e29e93d71c4f17099", + "shasum": "" + }, + "type": "library", + "autoload": { + "psr-0": { + "Svg\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-3.0" + ], + "authors": [ + { + "name": "Fabien Ménager", + "email": "fabien.menager@gmail.com" + } + ], + "description": "A library to read, parse and export to PDF SVG files.", + "homepage": "https://github.com/PhenX/php-svg-lib", + "time": "2015-05-06T18:49:49+00:00" + }, { "name": "phpdocumentor/reflection-common", "version": "1.0", @@ -4642,6 +4463,63 @@ ], "time": "2016-11-25T06:54:22+00:00" }, + { + "name": "phpoffice/phpexcel", + "version": "1.8.1", + "source": { + "type": "git", + "url": "https://github.com/PHPOffice/PHPExcel.git", + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/PHPOffice/PHPExcel/zipball/372c7cbb695a6f6f1e62649381aeaa37e7e70b32", + "reference": "372c7cbb695a6f6f1e62649381aeaa37e7e70b32", + "shasum": "" + }, + "require": { + "ext-xml": "*", + "ext-xmlwriter": "*", + "php": ">=5.2.0" + }, + "type": "library", + "autoload": { + "psr-0": { + "PHPExcel": "Classes/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL" + ], + "authors": [ + { + "name": "Maarten Balliauw", + "homepage": "http://blog.maartenballiauw.be" + }, + { + "name": "Mark Baker" + }, + { + "name": "Franck Lefevre", + "homepage": "http://blog.rootslabs.net" + }, + { + "name": "Erik Tilt" + } + ], + "description": "PHPExcel - OpenXML - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine", + "homepage": "http://phpexcel.codeplex.com", + "keywords": [ + "OpenXML", + "excel", + "php", + "spreadsheet", + "xls", + "xlsx" + ], + "time": "2015-05-01T07:00:55+00:00" + }, { "name": "phpspec/prophecy", "version": "v1.7.0", @@ -5608,6 +5486,114 @@ "homepage": "https://github.com/sebastianbergmann/version", "time": "2016-10-03T07:35:21+00:00" }, + { + "name": "symfony/polyfill-php56", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php56.git", + "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php56/zipball/bc0b7d6cb36b10cfabb170a3e359944a95174929", + "reference": "bc0b7d6cb36b10cfabb170a3e359944a95174929", + "shasum": "" + }, + "require": { + "php": ">=5.3.3", + "symfony/polyfill-util": "~1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Php56\\": "" + }, + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "time": "2017-06-09T08:25:21+00:00" + }, + { + "name": "symfony/polyfill-util", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-util.git", + "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-util/zipball/ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", + "reference": "ebccbde4aad410f6438d86d7d261c6b4d2b9a51d", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.4-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Polyfill\\Util\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony utilities for portability of PHP codes", + "homepage": "https://symfony.com", + "keywords": [ + "compat", + "compatibility", + "polyfill", + "shim" + ], + "time": "2017-06-09T08:25:21+00:00" + }, { "name": "webmozart/assert", "version": "1.2.0", @@ -5657,6 +5643,66 @@ "validate" ], "time": "2016-11-23T20:04:58+00:00" + }, + { + "name": "yajra/laravel-datatables-oracle", + "version": "v6.24.1", + "source": { + "type": "git", + "url": "https://github.com/yajra/laravel-datatables.git", + "reference": "593a9205c7d9816d2d8b639ca08000ae5c5f378c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/yajra/laravel-datatables/zipball/593a9205c7d9816d2d8b639ca08000ae5c5f378c", + "reference": "593a9205c7d9816d2d8b639ca08000ae5c5f378c", + "shasum": "" + }, + "require": { + "dompdf/dompdf": "^0.7", + "illuminate/database": "~5.0", + "illuminate/filesystem": "~5.0", + "illuminate/http": "~5.0", + "illuminate/support": "~5.0", + "illuminate/view": "~5.0", + "laravelcollective/html": "~5.0", + "league/fractal": "~0.14", + "maatwebsite/excel": "^2.0", + "php": ">=5.5.9" + }, + "require-dev": { + "mockery/mockery": "~0.9", + "phpunit/phpunit": "~4.0" + }, + "suggest": { + "barryvdh/laravel-snappy": "Allows exporting of dataTable to PDF using the print view." + }, + "type": "library", + "autoload": { + "psr-4": { + "Yajra\\Datatables\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Arjay Angeles", + "email": "aqangeles@gmail.com" + } + ], + "description": "jQuery DataTables API for Laravel 4|5", + "keywords": [ + "datatable", + "datatables", + "datatables jquery plugin", + "laravel", + "laravel4", + "laravel5" + ], + "time": "2017-01-24T02:46:52+00:00" } ], "aliases": [], diff --git a/config/app.php b/config/app.php index a0a30d4a..04657216 100755 --- a/config/app.php +++ b/config/app.php @@ -96,6 +96,7 @@ return [ InfyOm\Generator\InfyOmGeneratorServiceProvider::class, InfyOm\AdminLTETemplates\AdminLTETemplatesServiceProvider::class, Zizaco\Entrust\EntrustServiceProvider::class, + anlutro\LaravelSettings\ServiceProvider::class, /* * Application Service Providers... @@ -148,6 +149,7 @@ return [ 'Flash' => Laracasts\Flash\Flash::class, 'Yaml' => Symfony\Component\Yaml\Yaml::class, 'Geotools' => Toin0u\Geotools\Facade\Geotools::class, + 'Setting' => 'anlutro\LaravelSettings\Facade', ], ]; diff --git a/config/phpvms.php b/config/phpvms.php new file mode 100644 index 00000000..956648b7 --- /dev/null +++ b/config/phpvms.php @@ -0,0 +1,47 @@ + [ + 'dollar', + 'euro', + 'gbp', + 'yen', + 'jpy', + 'rupee', + 'rouble', + ], + + 'timezones' => [ + '-12' => '(GMT -12:00) Eniwetok, Kwajalein', + '-11' => '(GMT -11:00) Midway Island, Samoa', + '-10' => '(GMT -10:00) Hawaii', + '-9' => '(GMT -9:00) Alaska', + '-8' => '(GMT -8:00) Pacific Time (US & Canada)', + '-7' => '(GMT -7:00) Mountain Time (US & Canada)', + '-6' => '(GMT -6:00) Central Time (US & Canada), Mexico City', + '-5' => '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima', + '-4' => '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz', + '-3.5' => '(GMT -3:30) Newfoundland', + '-3' => '(GMT -3:00) Brazil, Buenos Aires, Georgetown', + '-2' => '(GMT -2:00) Mid-Atlantic', + '-1' => '(GMT -1:00) Azores, Cape Verde Islands', + '0' => '(GMT) Western Europe Time, London, Lisbon, Casablanca', + '1' => '(GMT +1:00) Brussels, Copenhagen, Madrid, Paris', + '2' => '(GMT +2:00) Kaliningrad, South Africa', + '3' => '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg', + '3.5' => '(GMT +3:30) Tehran', + '4' => '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi', + '4.5' => '(GMT +4:30) Kabul', + '5' => '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent', + '5.5' => '(GMT +5:30) Bombay, Calcutta, Madras, New Delhi', + '6' => '(GMT +6:00) Almaty, Dhaka, Colombo', + '7' => '(GMT +7:00) Bangkok, Hanoi, Jakarta', + '8' => '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong', + '9' => '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk', + '9.5' => '(GMT +9:30) Adelaide, Darwin', + '10' => '(GMT +10:00) Eastern Australia, Guam, Vladivostok', + '11' => '(GMT +11:00) Magadan, Solomon Islands, New Caledonia', + '12' => '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka' + ), +]; diff --git a/config/settings.php b/config/settings.php new file mode 100644 index 00000000..7fea2de2 --- /dev/null +++ b/config/settings.php @@ -0,0 +1,22 @@ + 'json', + + // if the json store is used, give the full path to the .json file + // that the store writes to. + 'path' => storage_path().'/settings.json', + + // if the database store is used, set the name of the table used.. + 'table' => 'settings', + + // If the database store is used, you can set which connection to use. if + // set to null, the default connection will be used. + 'connection' => null, + + // If you want to use custom column names in database store you could + // set them in this configuration + 'keyColumn' => 'key', + 'valueColumn' => 'value' +); diff --git a/database/migrations/2015_08_25_172600_create_settings_table.php b/database/migrations/2015_08_25_172600_create_settings_table.php new file mode 100644 index 00000000..2c544f54 --- /dev/null +++ b/database/migrations/2015_08_25_172600_create_settings_table.php @@ -0,0 +1,45 @@ +tablename = Config::get('settings.table'); + $this->keyColumn = Config::get('settings.keyColumn'); + $this->valueColumn = Config::get('settings.valueColumn'); + } + + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create($this->tablename, function(Blueprint $table) + { + $table->increments('id'); + $table->string($this->keyColumn)->index(); + $table->text($this->valueColumn); + }); + + Setting::set('timezone', '0'); + Setting::set('currency', 'dollar'); + Setting::save(); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop($this->tablename); + } +} diff --git a/storage/settings.json b/storage/settings.json new file mode 100644 index 00000000..9f5dd4e3 --- /dev/null +++ b/storage/settings.json @@ -0,0 +1 @@ +{"foo":"bar"} \ No newline at end of file