diff --git a/CHANGELOG.md b/CHANGELOG.md
index 403e9f9..1d467a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,8 +1,12 @@
## Changelog
### 2.10.2
++ Out of the box laravel-cors [#69](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/69)
+ Rename `$scope` and `$attrs` to `scope` and `attrs` in directive generator [#63](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/63)
+ Added model factory support [#71](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/71)
++ Fixed livereload when working in vagrant [#77](https://github.com/jadjoubran/laravel5-angular-material-starter/pull/77)
++ Added DialogService confirm method [#44](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/44)
++ Fixed JWT auth bug [#82](https://github.com/jadjoubran/laravel5-angular-material-starter/pull/82)
### 2.10.1
+ Fixed default cipher [#60](https://github.com/jadjoubran/laravel5-angular-material-starter/issues/60)
diff --git a/angular/app/misc/misc.html b/angular/app/misc/misc.html
index ae71ba0..35fcf01 100644
--- a/angular/app/misc/misc.html
+++ b/angular/app/misc/misc.html
@@ -20,6 +20,22 @@
Debugbar
+
+
+
+
+
Cross Origin Resource Sharing (CORS)
+
+
+
+
+
+ Laravel-cors works out of the box. All API endpoints return the allow-access-origin header. The cors middleware is enabled in the global middlewares in app\Http\kernel.php.
+
+
+
+
+
@@ -58,4 +74,4 @@ Angular Filters
-
\ No newline at end of file
+
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.php
index e9f97f3..9e65fac 100644
--- a/app/Http/Kernel.php
+++ b/app/Http/Kernel.php
@@ -17,6 +17,7 @@ class Kernel extends HttpKernel
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
+ 'Barryvdh\Cors\HandleCors',
// 'App\Http\Middleware\VerifyCsrfToken', //re-enable if you're disabling JWT
];
diff --git a/composer.json b/composer.json
index 360f933..539e773 100644
--- a/composer.json
+++ b/composer.json
@@ -9,7 +9,8 @@
"laravel/framework": "5.1.*",
"barryvdh/laravel-debugbar": "~2.0",
"tymon/jwt-auth": "0.5.*",
- "dingo/api": "1.0.x@dev"
+ "dingo/api": "1.0.x@dev",
+ "barryvdh/laravel-cors": "0.7.x"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
diff --git a/composer.lock b/composer.lock
index f1fce51..f0875d9 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,20 +4,113 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "hash": "e14673dcf0a3e419a6e4e5145c661418",
+ "hash": "4629c65ef6d0fb11fe830ec89acd246a",
+ "content-hash": "779ebcb56e47fae78786deab2fd9be58",
"packages": [
+ {
+ "name": "asm89/stack-cors",
+ "version": "0.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/asm89/stack-cors.git",
+ "reference": "2d77e77251a434e4527315313a672f5801b29fa2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/asm89/stack-cors/zipball/2d77e77251a434e4527315313a672f5801b29fa2",
+ "reference": "2d77e77251a434e4527315313a672f5801b29fa2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.2",
+ "symfony/http-foundation": "~2.1",
+ "symfony/http-kernel": "~2.1"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Asm89\\Stack": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Alexander",
+ "email": "iam.asm89@gmail.com"
+ }
+ ],
+ "description": "Cross-origin resource sharing library and stack middleware",
+ "homepage": "https://github.com/asm89/stack-cors",
+ "keywords": [
+ "cors",
+ "stack"
+ ],
+ "time": "2014-07-28 07:22:35"
+ },
+ {
+ "name": "barryvdh/laravel-cors",
+ "version": "v0.7.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/barryvdh/laravel-cors.git",
+ "reference": "f6f389f06d89d73536cf7ffda58850d4d09bdc4d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/barryvdh/laravel-cors/zipball/f6f389f06d89d73536cf7ffda58850d4d09bdc4d",
+ "reference": "f6f389f06d89d73536cf7ffda58850d4d09bdc4d",
+ "shasum": ""
+ },
+ "require": {
+ "asm89/stack-cors": "0.2.x",
+ "illuminate/support": "~5.0.14|5.1.x",
+ "php": ">=5.4.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.7-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Barryvdh\\Cors\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Barry vd. Heuvel",
+ "email": "barryvdh@gmail.com"
+ }
+ ],
+ "description": "Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application",
+ "keywords": [
+ "api",
+ "cors",
+ "crossdomain",
+ "laravel"
+ ],
+ "time": "2015-09-09 16:56:18"
+ },
{
"name": "barryvdh/laravel-debugbar",
- "version": "v2.0.5",
+ "version": "v2.0.6",
"source": {
"type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git",
- "reference": "753106cd1f9c724d05bb48728bc652231174e279"
+ "reference": "23672cbbe78278ff1fdb258caa0b1de7b5d0bc0c"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/753106cd1f9c724d05bb48728bc652231174e279",
- "reference": "753106cd1f9c724d05bb48728bc652231174e279",
+ "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/23672cbbe78278ff1fdb258caa0b1de7b5d0bc0c",
+ "reference": "23672cbbe78278ff1fdb258caa0b1de7b5d0bc0c",
"shasum": ""
},
"require": {
@@ -29,7 +122,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.0-dev"
+ "dev-master": "2.1-dev"
}
},
"autoload": {
@@ -58,7 +151,7 @@
"profiler",
"webprofiler"
],
- "time": "2015-07-09 14:51:59"
+ "time": "2015-09-09 11:39:27"
},
{
"name": "classpreloader/classpreloader",
@@ -176,33 +269,33 @@
"source": {
"type": "git",
"url": "https://github.com/dingo/api.git",
- "reference": "eb22dd101349b51e447e3baa865067ef3944991a"
+ "reference": "4c8d21c0da07376b8e0caa7111562dc48555880b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/dingo/api/zipball/eb22dd101349b51e447e3baa865067ef3944991a",
- "reference": "eb22dd101349b51e447e3baa865067ef3944991a",
+ "url": "https://api.github.com/repos/dingo/api/zipball/4c8d21c0da07376b8e0caa7111562dc48555880b",
+ "reference": "4c8d21c0da07376b8e0caa7111562dc48555880b",
"shasum": ""
},
"require": {
"dingo/blueprint": "0.1.*",
"doctrine/annotations": "1.2.*",
- "illuminate/routing": "5.1.*",
- "illuminate/support": "5.1.*",
+ "illuminate/routing": "~5.1",
+ "illuminate/support": "~5.1",
"league/fractal": "0.12.*",
"php": ">=5.5.9",
"phpdocumentor/reflection-docblock": "2.0.*"
},
"require-dev": {
- "illuminate/auth": "5.1.*",
- "illuminate/cache": "5.1.*",
- "illuminate/console": "5.1.*",
- "illuminate/database": "5.1.*",
- "illuminate/events": "5.1.*",
- "illuminate/filesystem": "5.1.*",
- "illuminate/log": "5.1.*",
- "illuminate/pagination": "5.1.*",
- "laravel/lumen-framework": "5.1.*",
+ "illuminate/auth": "~5.1",
+ "illuminate/cache": "~5.1",
+ "illuminate/console": "~5.1",
+ "illuminate/database": "~5.1",
+ "illuminate/events": "~5.1",
+ "illuminate/filesystem": "~5.1",
+ "illuminate/log": "~5.1",
+ "illuminate/pagination": "~5.1",
+ "laravel/lumen-framework": "~5.1",
"lucadegasperi/oauth2-server-laravel": "5.0.*",
"mockery/mockery": "~0.9",
"phpunit/phpunit": "~4.0",
@@ -244,7 +337,7 @@
"laravel",
"restful"
],
- "time": "2015-09-04 01:35:06"
+ "time": "2015-10-13 06:54:17"
},
{
"name": "dingo/blueprint",
@@ -670,16 +763,16 @@
},
{
"name": "laravel/framework",
- "version": "v5.1.16",
+ "version": "v5.1.20",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
- "reference": "e34dcc0c57e0f560248aec5128161256ff8bf4e1"
+ "reference": "435af155ed15a6b1d03a0d0a46ae4c347d96b0d7"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/laravel/framework/zipball/e34dcc0c57e0f560248aec5128161256ff8bf4e1",
- "reference": "e34dcc0c57e0f560248aec5128161256ff8bf4e1",
+ "url": "https://api.github.com/repos/laravel/framework/zipball/435af155ed15a6b1d03a0d0a46ae4c347d96b0d7",
+ "reference": "435af155ed15a6b1d03a0d0a46ae4c347d96b0d7",
"shasum": ""
},
"require": {
@@ -693,6 +786,7 @@
"monolog/monolog": "~1.11",
"mtdowling/cron-expression": "~1.0",
"nesbot/carbon": "~1.19",
+ "paragonie/random_compat": "^1.0.4",
"php": ">=5.5.9",
"psy/psysh": "~0.5.1",
"swiftmailer/swiftmailer": "~5.1",
@@ -794,25 +888,28 @@
"framework",
"laravel"
],
- "time": "2015-09-04 12:46:14"
+ "time": "2015-10-14 15:49:40"
},
{
"name": "league/flysystem",
- "version": "1.0.11",
+ "version": "1.0.15",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
- "reference": "c16222fdc02467eaa12cb6d6d0e65527741f6040"
+ "reference": "31525caf9e8772683672fefd8a1ca0c0736020f4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/c16222fdc02467eaa12cb6d6d0e65527741f6040",
- "reference": "c16222fdc02467eaa12cb6d6d0e65527741f6040",
+ "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/31525caf9e8772683672fefd8a1ca0c0736020f4",
+ "reference": "31525caf9e8772683672fefd8a1ca0c0736020f4",
"shasum": ""
},
"require": {
"php": ">=5.4.0"
},
+ "conflict": {
+ "league/flysystem-sftp": "<1.0.6"
+ },
"require-dev": {
"ext-fileinfo": "*",
"mockery/mockery": "~0.9",
@@ -875,7 +972,7 @@
"sftp",
"storage"
],
- "time": "2015-07-28 20:41:58"
+ "time": "2015-09-30 22:26:59"
},
{
"name": "league/fractal",
@@ -998,16 +1095,16 @@
},
{
"name": "monolog/monolog",
- "version": "1.17.1",
+ "version": "1.17.2",
"source": {
"type": "git",
"url": "https://github.com/Seldaek/monolog.git",
- "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422"
+ "reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/Seldaek/monolog/zipball/0524c87587ab85bc4c2d6f5b41253ccb930a5422",
- "reference": "0524c87587ab85bc4c2d6f5b41253ccb930a5422",
+ "url": "https://api.github.com/repos/Seldaek/monolog/zipball/bee7f0dc9c3e0b69a6039697533dca1e845c8c24",
+ "reference": "bee7f0dc9c3e0b69a6039697533dca1e845c8c24",
"shasum": ""
},
"require": {
@@ -1021,10 +1118,11 @@
"aws/aws-sdk-php": "^2.4.9",
"doctrine/couchdb": "~1.0@dev",
"graylog2/gelf-php": "~1.0",
+ "jakub-onderka/php-parallel-lint": "0.9",
"php-console/php-console": "^3.1.3",
"phpunit/phpunit": "~4.5",
"phpunit/phpunit-mock-objects": "2.3.0",
- "raven/raven": "~0.11",
+ "raven/raven": "^0.13",
"ruflin/elastica": ">=0.90 <3.0",
"swiftmailer/swiftmailer": "~5.3",
"videlalvaro/php-amqplib": "~2.4"
@@ -1070,7 +1168,7 @@
"logging",
"psr-3"
],
- "time": "2015-08-31 09:17:37"
+ "time": "2015-10-14 12:51:02"
},
{
"name": "mtdowling/cron-expression",
@@ -1215,16 +1313,16 @@
},
{
"name": "nikic/php-parser",
- "version": "v1.4.0",
+ "version": "v1.4.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
- "reference": "196f177cfefa0f1f7166c0a05d8255889be12418"
+ "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/196f177cfefa0f1f7166c0a05d8255889be12418",
- "reference": "196f177cfefa0f1f7166c0a05d8255889be12418",
+ "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51",
+ "reference": "f78af2c9c86107aa1a34cd1dbb5bbe9eeb0d9f51",
"shasum": ""
},
"require": {
@@ -1256,7 +1354,52 @@
"parser",
"php"
],
- "time": "2015-07-14 17:31:05"
+ "time": "2015-09-19 14:15:08"
+ },
+ {
+ "name": "paragonie/random_compat",
+ "version": "1.0.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/paragonie/random_compat.git",
+ "reference": "9a0ce69360aa22413a96f2bf93f61235e2c18486"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/paragonie/random_compat/zipball/9a0ce69360aa22413a96f2bf93f61235e2c18486",
+ "reference": "9a0ce69360aa22413a96f2bf93f61235e2c18486",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.0"
+ },
+ "suggest": {
+ "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes."
+ },
+ "type": "library",
+ "autoload": {
+ "files": [
+ "lib/random.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Paragon Initiative Enterprises",
+ "email": "security@paragonie.com",
+ "homepage": "https://paragonie.com"
+ }
+ ],
+ "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7",
+ "keywords": [
+ "csprng",
+ "pseudorandom",
+ "random"
+ ],
+ "time": "2015-10-16 03:43:13"
},
{
"name": "phpdocumentor/reflection-docblock",
@@ -1570,16 +1713,16 @@
},
{
"name": "symfony/console",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Console.git",
- "reference": "d6cf02fe73634c96677e428f840704bfbcaec29e"
+ "url": "https://github.com/symfony/console.git",
+ "reference": "06cb17c013a82f94a3d840682b49425cd00a2161"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Console/zipball/d6cf02fe73634c96677e428f840704bfbcaec29e",
- "reference": "d6cf02fe73634c96677e428f840704bfbcaec29e",
+ "url": "https://api.github.com/repos/symfony/console/zipball/06cb17c013a82f94a3d840682b49425cd00a2161",
+ "reference": "06cb17c013a82f94a3d840682b49425cd00a2161",
"shasum": ""
},
"require": {
@@ -1623,20 +1766,20 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
- "time": "2015-07-28 15:18:12"
+ "time": "2015-09-25 08:32:23"
},
{
"name": "symfony/css-selector",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/CssSelector.git",
- "reference": "0b5c07b516226b7dd32afbbc82fe547a469c5092"
+ "url": "https://github.com/symfony/css-selector.git",
+ "reference": "abe19cc0429a06be0c133056d1f9859854860970"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/CssSelector/zipball/0b5c07b516226b7dd32afbbc82fe547a469c5092",
- "reference": "0b5c07b516226b7dd32afbbc82fe547a469c5092",
+ "url": "https://api.github.com/repos/symfony/css-selector/zipball/abe19cc0429a06be0c133056d1f9859854860970",
+ "reference": "abe19cc0429a06be0c133056d1f9859854860970",
"shasum": ""
},
"require": {
@@ -1676,20 +1819,20 @@
],
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
- "time": "2015-05-15 13:33:16"
+ "time": "2015-09-22 13:49:29"
},
{
"name": "symfony/debug",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Debug.git",
- "reference": "9daa1bf9f7e615fa2fba30357e479a90141222e3"
+ "url": "https://github.com/symfony/debug.git",
+ "reference": "c79c361bca8e5ada6a47603875a3c964d03b67b1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Debug/zipball/9daa1bf9f7e615fa2fba30357e479a90141222e3",
- "reference": "9daa1bf9f7e615fa2fba30357e479a90141222e3",
+ "url": "https://api.github.com/repos/symfony/debug/zipball/c79c361bca8e5ada6a47603875a3c964d03b67b1",
+ "reference": "c79c361bca8e5ada6a47603875a3c964d03b67b1",
"shasum": ""
},
"require": {
@@ -1701,14 +1844,9 @@
},
"require-dev": {
"symfony/class-loader": "~2.2",
- "symfony/http-foundation": "~2.1",
"symfony/http-kernel": "~2.3.24|~2.5.9|~2.6,>=2.6.2",
"symfony/phpunit-bridge": "~2.7"
},
- "suggest": {
- "symfony/http-foundation": "",
- "symfony/http-kernel": ""
- },
"type": "library",
"extra": {
"branch-alias": {
@@ -1736,20 +1874,20 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
- "time": "2015-07-09 16:07:40"
+ "time": "2015-09-14 08:41:38"
},
{
"name": "symfony/dom-crawler",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/DomCrawler.git",
- "reference": "9dabece63182e95c42b06967a0d929a5df78bc35"
+ "url": "https://github.com/symfony/dom-crawler.git",
+ "reference": "2e185ca136399f902b948694987e62c80099c052"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/DomCrawler/zipball/9dabece63182e95c42b06967a0d929a5df78bc35",
- "reference": "9dabece63182e95c42b06967a0d929a5df78bc35",
+ "url": "https://api.github.com/repos/symfony/dom-crawler/zipball/2e185ca136399f902b948694987e62c80099c052",
+ "reference": "2e185ca136399f902b948694987e62c80099c052",
"shasum": ""
},
"require": {
@@ -1789,20 +1927,20 @@
],
"description": "Symfony DomCrawler Component",
"homepage": "https://symfony.com",
- "time": "2015-07-09 16:07:40"
+ "time": "2015-09-20 21:13:58"
},
{
"name": "symfony/event-dispatcher",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/EventDispatcher.git",
- "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3"
+ "url": "https://github.com/symfony/event-dispatcher.git",
+ "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/EventDispatcher/zipball/9310b5f9a87ec2ea75d20fec0b0017c77c66dac3",
- "reference": "9310b5f9a87ec2ea75d20fec0b0017c77c66dac3",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/ae4dcc2a8d3de98bd794167a3ccda1311597c5d9",
+ "reference": "ae4dcc2a8d3de98bd794167a3ccda1311597c5d9",
"shasum": ""
},
"require": {
@@ -1847,20 +1985,20 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
- "time": "2015-06-18 19:21:56"
+ "time": "2015-09-22 13:49:29"
},
{
"name": "symfony/finder",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Finder.git",
- "reference": "ae0f363277485094edc04c9f3cbe595b183b78e4"
+ "url": "https://github.com/symfony/finder.git",
+ "reference": "8262ab605973afbb3ef74b945daabf086f58366f"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Finder/zipball/ae0f363277485094edc04c9f3cbe595b183b78e4",
- "reference": "ae0f363277485094edc04c9f3cbe595b183b78e4",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/8262ab605973afbb3ef74b945daabf086f58366f",
+ "reference": "8262ab605973afbb3ef74b945daabf086f58366f",
"shasum": ""
},
"require": {
@@ -1896,20 +2034,20 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
- "time": "2015-07-09 16:07:40"
+ "time": "2015-09-19 19:59:23"
},
{
"name": "symfony/http-foundation",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/HttpFoundation.git",
- "reference": "863af6898081b34c65d42100c370b9f3c51b70ca"
+ "url": "https://github.com/symfony/http-foundation.git",
+ "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/HttpFoundation/zipball/863af6898081b34c65d42100c370b9f3c51b70ca",
- "reference": "863af6898081b34c65d42100c370b9f3c51b70ca",
+ "url": "https://api.github.com/repos/symfony/http-foundation/zipball/e1509119f164a0d0a940d7d924d693a7a28a5470",
+ "reference": "e1509119f164a0d0a940d7d924d693a7a28a5470",
"shasum": ""
},
"require": {
@@ -1949,20 +2087,20 @@
],
"description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com",
- "time": "2015-07-22 10:11:00"
+ "time": "2015-09-22 13:49:29"
},
{
"name": "symfony/http-kernel",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/HttpKernel.git",
- "reference": "405d3e7a59ff7a28ec469441326a0ac79065ea98"
+ "url": "https://github.com/symfony/http-kernel.git",
+ "reference": "353aa457424262d7d4e4289ea483145921cffcb5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/HttpKernel/zipball/405d3e7a59ff7a28ec469441326a0ac79065ea98",
- "reference": "405d3e7a59ff7a28ec469441326a0ac79065ea98",
+ "url": "https://api.github.com/repos/symfony/http-kernel/zipball/353aa457424262d7d4e4289ea483145921cffcb5",
+ "reference": "353aa457424262d7d4e4289ea483145921cffcb5",
"shasum": ""
},
"require": {
@@ -2029,20 +2167,20 @@
],
"description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com",
- "time": "2015-07-31 13:24:45"
+ "time": "2015-09-25 11:16:52"
},
{
"name": "symfony/process",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Process.git",
- "reference": "48aeb0e48600321c272955132d7606ab0a49adb3"
+ "url": "https://github.com/symfony/process.git",
+ "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Process/zipball/48aeb0e48600321c272955132d7606ab0a49adb3",
- "reference": "48aeb0e48600321c272955132d7606ab0a49adb3",
+ "url": "https://api.github.com/repos/symfony/process/zipball/b27c8e317922cd3cdd3600850273cf6b82b2e8e9",
+ "reference": "b27c8e317922cd3cdd3600850273cf6b82b2e8e9",
"shasum": ""
},
"require": {
@@ -2078,20 +2216,20 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
- "time": "2015-07-01 11:25:50"
+ "time": "2015-09-19 19:59:23"
},
{
"name": "symfony/routing",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Routing.git",
- "reference": "ea9134f277162b02e5f80ac058b75a77637b0d26"
+ "url": "https://github.com/symfony/routing.git",
+ "reference": "6c5fae83efa20baf166fcf4582f57094e9f60f16"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Routing/zipball/ea9134f277162b02e5f80ac058b75a77637b0d26",
- "reference": "ea9134f277162b02e5f80ac058b75a77637b0d26",
+ "url": "https://api.github.com/repos/symfony/routing/zipball/6c5fae83efa20baf166fcf4582f57094e9f60f16",
+ "reference": "6c5fae83efa20baf166fcf4582f57094e9f60f16",
"shasum": ""
},
"require": {
@@ -2149,20 +2287,20 @@
"uri",
"url"
],
- "time": "2015-07-09 16:07:40"
+ "time": "2015-09-14 14:14:09"
},
{
"name": "symfony/translation",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Translation.git",
- "reference": "c8dc34cc936152c609cdd722af317e4239d10dd6"
+ "url": "https://github.com/symfony/translation.git",
+ "reference": "485877661835e188cd78345c6d4eef1290d17571"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Translation/zipball/c8dc34cc936152c609cdd722af317e4239d10dd6",
- "reference": "c8dc34cc936152c609cdd722af317e4239d10dd6",
+ "url": "https://api.github.com/repos/symfony/translation/zipball/485877661835e188cd78345c6d4eef1290d17571",
+ "reference": "485877661835e188cd78345c6d4eef1290d17571",
"shasum": ""
},
"require": {
@@ -2174,7 +2312,7 @@
"require-dev": {
"psr/log": "~1.0",
"symfony/config": "~2.7",
- "symfony/intl": "~2.3",
+ "symfony/intl": "~2.4",
"symfony/phpunit-bridge": "~2.7",
"symfony/yaml": "~2.2"
},
@@ -2210,20 +2348,20 @@
],
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
- "time": "2015-07-09 16:07:40"
+ "time": "2015-09-06 08:36:38"
},
{
"name": "symfony/var-dumper",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
"url": "https://github.com/symfony/var-dumper.git",
- "reference": "e8903ebba5eb019f5886ffce739ea9e3b7519579"
+ "reference": "ba8c9a0edf18f70a7efcb8d3eb35323a10263338"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/var-dumper/zipball/e8903ebba5eb019f5886ffce739ea9e3b7519579",
- "reference": "e8903ebba5eb019f5886ffce739ea9e3b7519579",
+ "url": "https://api.github.com/repos/symfony/var-dumper/zipball/ba8c9a0edf18f70a7efcb8d3eb35323a10263338",
+ "reference": "ba8c9a0edf18f70a7efcb8d3eb35323a10263338",
"shasum": ""
},
"require": {
@@ -2269,20 +2407,20 @@
"debug",
"dump"
],
- "time": "2015-07-28 15:18:12"
+ "time": "2015-09-22 14:41:01"
},
{
"name": "tymon/jwt-auth",
- "version": "0.5.4",
+ "version": "0.5.5",
"source": {
"type": "git",
"url": "https://github.com/tymondesigns/jwt-auth.git",
- "reference": "fccf3f42742c21f8d0a132025e8d999308792ad9"
+ "reference": "eb4abc9bf9d301e3e22f4eaa45a509d6b3100d58"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/tymondesigns/jwt-auth/zipball/fccf3f42742c21f8d0a132025e8d999308792ad9",
- "reference": "fccf3f42742c21f8d0a132025e8d999308792ad9",
+ "url": "https://api.github.com/repos/tymondesigns/jwt-auth/zipball/eb4abc9bf9d301e3e22f4eaa45a509d6b3100d58",
+ "reference": "eb4abc9bf9d301e3e22f4eaa45a509d6b3100d58",
"shasum": ""
},
"require": {
@@ -2332,7 +2470,7 @@
"laravel",
"tymon"
],
- "time": "2015-06-23 22:34:08"
+ "time": "2015-09-15 21:20:29"
},
{
"name": "vlucas/phpdotenv",
@@ -2634,16 +2772,16 @@
},
{
"name": "phpspec/phpspec",
- "version": "2.2.1",
+ "version": "2.3.0",
"source": {
"type": "git",
"url": "https://github.com/phpspec/phpspec.git",
- "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8"
+ "reference": "36635a903bdeb54899d7407bc95610501fd98559"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpspec/phpspec/zipball/e9a40577323e67f1de2e214abf32976a0352d8f8",
- "reference": "e9a40577323e67f1de2e214abf32976a0352d8f8",
+ "url": "https://api.github.com/repos/phpspec/phpspec/zipball/36635a903bdeb54899d7407bc95610501fd98559",
+ "reference": "36635a903bdeb54899d7407bc95610501fd98559",
"shasum": ""
},
"require": {
@@ -2655,15 +2793,14 @@
"symfony/console": "~2.3",
"symfony/event-dispatcher": "~2.1",
"symfony/finder": "~2.1",
- "symfony/process": "~2.1",
+ "symfony/process": "^2.6",
"symfony/yaml": "~2.1"
},
"require-dev": {
"behat/behat": "^3.0.11",
"bossa/phpspec2-expect": "~1.0",
"phpunit/phpunit": "~4.4",
- "symfony/filesystem": "~2.1",
- "symfony/process": "~2.1"
+ "symfony/filesystem": "~2.1"
},
"suggest": {
"phpspec/nyan-formatters": "~1.0 – Adds Nyan formatters"
@@ -2708,7 +2845,7 @@
"testing",
"tests"
],
- "time": "2015-05-30 15:21:40"
+ "time": "2015-09-07 07:07:37"
},
{
"name": "phpspec/prophecy",
@@ -2772,16 +2909,16 @@
},
{
"name": "phpunit/php-code-coverage",
- "version": "2.2.2",
+ "version": "2.2.4",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "2d7c03c0e4e080901b8f33b2897b0577be18a13c"
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2d7c03c0e4e080901b8f33b2897b0577be18a13c",
- "reference": "2d7c03c0e4e080901b8f33b2897b0577be18a13c",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/eabf68b476ac7d0f73793aada060f1c1a9bf8979",
+ "reference": "eabf68b476ac7d0f73793aada060f1c1a9bf8979",
"shasum": ""
},
"require": {
@@ -2830,7 +2967,7 @@
"testing",
"xunit"
],
- "time": "2015-08-04 03:42:39"
+ "time": "2015-10-06 15:47:00"
},
{
"name": "phpunit/php-file-iterator",
@@ -2963,16 +3100,16 @@
},
{
"name": "phpunit/php-token-stream",
- "version": "1.4.6",
+ "version": "1.4.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-token-stream.git",
- "reference": "3ab72c62e550370a6cd5dc873e1a04ab57562f5b"
+ "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3ab72c62e550370a6cd5dc873e1a04ab57562f5b",
- "reference": "3ab72c62e550370a6cd5dc873e1a04ab57562f5b",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
+ "reference": "3144ae21711fb6cac0b1ab4cbe63b75ce3d4e8da",
"shasum": ""
},
"require": {
@@ -3008,20 +3145,20 @@
"keywords": [
"tokenizer"
],
- "time": "2015-08-16 08:51:00"
+ "time": "2015-09-15 10:49:45"
},
{
"name": "phpunit/phpunit",
- "version": "4.8.6",
+ "version": "4.8.13",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git",
- "reference": "2246830f4a1a551c67933e4171bf2126dc29d357"
+ "reference": "be067d6105286b74272facefc2697038f8807b77"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2246830f4a1a551c67933e4171bf2126dc29d357",
- "reference": "2246830f4a1a551c67933e4171bf2126dc29d357",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/be067d6105286b74272facefc2697038f8807b77",
+ "reference": "be067d6105286b74272facefc2697038f8807b77",
"shasum": ""
},
"require": {
@@ -3080,20 +3217,20 @@
"testing",
"xunit"
],
- "time": "2015-08-24 04:09:38"
+ "time": "2015-10-14 13:49:40"
},
{
"name": "phpunit/phpunit-mock-objects",
- "version": "2.3.7",
+ "version": "2.3.8",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
- "reference": "5e2645ad49d196e020b85598d7c97e482725786a"
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/5e2645ad49d196e020b85598d7c97e482725786a",
- "reference": "5e2645ad49d196e020b85598d7c97e482725786a",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/ac8e7a3db35738d56ee9a76e78a4e03d97628983",
+ "reference": "ac8e7a3db35738d56ee9a76e78a4e03d97628983",
"shasum": ""
},
"require": {
@@ -3136,7 +3273,7 @@
"mock",
"xunit"
],
- "time": "2015-08-19 09:14:08"
+ "time": "2015-10-02 06:51:40"
},
{
"name": "sebastian/comparator",
@@ -3372,16 +3509,16 @@
},
{
"name": "sebastian/global-state",
- "version": "1.0.0",
+ "version": "1.1.1",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/global-state.git",
- "reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01"
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/c7428acdb62ece0a45e6306f1ae85e1c05b09c01",
- "reference": "c7428acdb62ece0a45e6306f1ae85e1c05b09c01",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bc37d50fea7d017d3d340f230811c9f1d7280af4",
+ "reference": "bc37d50fea7d017d3d340f230811c9f1d7280af4",
"shasum": ""
},
"require": {
@@ -3419,7 +3556,7 @@
"keywords": [
"global state"
],
- "time": "2014-10-06 09:23:50"
+ "time": "2015-10-12 03:26:01"
},
{
"name": "sebastian/recursion-context",
@@ -3511,16 +3648,16 @@
},
{
"name": "symfony/yaml",
- "version": "v2.7.3",
+ "version": "v2.7.5",
"source": {
"type": "git",
- "url": "https://github.com/symfony/Yaml.git",
- "reference": "71340e996171474a53f3d29111d046be4ad8a0ff"
+ "url": "https://github.com/symfony/yaml.git",
+ "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/Yaml/zipball/71340e996171474a53f3d29111d046be4ad8a0ff",
- "reference": "71340e996171474a53f3d29111d046be4ad8a0ff",
+ "url": "https://api.github.com/repos/symfony/yaml/zipball/31cb2ad0155c95b88ee55fe12bc7ff92232c1770",
+ "reference": "31cb2ad0155c95b88ee55fe12bc7ff92232c1770",
"shasum": ""
},
"require": {
@@ -3556,7 +3693,7 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
- "time": "2015-07-28 14:07:07"
+ "time": "2015-09-14 14:14:09"
}
],
"aliases": [],
diff --git a/config/app.php b/config/app.php
index 64d67e0..4eb7c99 100644
--- a/config/app.php
+++ b/config/app.php
@@ -153,6 +153,8 @@
Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
Dingo\Api\Provider\LaravelServiceProvider::class,
+ Barryvdh\Cors\ServiceProvider::class,
+
],
/*
diff --git a/config/cors.php b/config/cors.php
new file mode 100644
index 0000000..33bfc00
--- /dev/null
+++ b/config/cors.php
@@ -0,0 +1,21 @@
+ false,
+ 'allowedOrigins' => ['*'],
+ 'allowedHeaders' => ['*'],
+ 'allowedMethods' => ['GET', 'POST', 'PUT', 'DELETE'],
+ 'exposedHeaders' => [],
+ 'maxAge' => 0,
+ 'hosts' => [],
+];
+
diff --git a/public/js/app.js b/public/js/app.js
index 1931230..f63f991 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -1 +1 @@
-!function(){"use strict";angular.module("app",["app.controllers","app.filters","app.services","app.directives","app.routes","app.config"]);angular.module("app.routes",["ui.router","ngStorage","satellizer"]),angular.module("app.controllers",["ui.router","ngMaterial","ngStorage","restangular","ngMdIcons","angular-loading-bar"]),angular.module("app.filters",[]),angular.module("app.services",["ui.router","ngStorage","restangular"]),angular.module("app.directives",[]),angular.module("app.config",[])}(),function(){"use strict";angular.module("app.routes").config(["$stateProvider","$urlRouterProvider",function(t,e){var a=function(t){return"./views/app/"+t+"/"+t+".html"};e.otherwise("/"),t.state("app",{"abstract":!0,views:{sidebar:{templateUrl:a("sidebar")},header:{templateUrl:a("header")},main:{}}}).state("app.landing",{url:"/",data:{pageName:"Overview"},views:{"main@":{templateUrl:a("landing")}}}).state("app.install",{url:"/install",data:{pageName:"Install"},views:{"main@":{templateUrl:a("install")}}}).state("app.tabs",{url:"/features",data:{pageName:"Features"},views:{"main@":{templateUrl:a("tabs")}}}).state("app.deploy",{url:"/deploy",data:{pageName:"Deploy"},views:{"main@":{templateUrl:a("deploy")}}}).state("app.theme",{url:"/theme",data:{pageName:"Theme"},views:{"main@":{templateUrl:a("theme")}}}).state("app.toasts",{url:"/toasts",data:{pageName:"Toasts"},views:{"main@":{templateUrl:a("toasts")}}}).state("app.dialogs",{url:"/dialogs",data:{pageName:"Dialogs"},views:{"main@":{templateUrl:a("dialogs")}}}).state("app.generators",{url:"/generators",data:{pageName:"Artisan generators"},views:{"main@":{templateUrl:a("generators")}}}).state("app.jwt_auth",{url:"/jwt_auth",data:{pageName:"JSON Web Token Authentication"},views:{"main@":{templateUrl:a("jwt_auth")}}}).state("app.elixir",{url:"/elixir",data:{pageName:"Elixir"},views:{"main@":{templateUrl:a("elixir")}}}).state("app.rest_api",{url:"/rest_api",data:{pageName:"REST API"},views:{"main@":{templateUrl:a("rest_api")}}}).state("app.unsupported_browser",{url:"/unsupported_browser",data:{pageName:"Unsupported Browser"},views:{"main@":{templateUrl:a("unsupported_browser")}}}).state("app.misc",{url:"/misc",data:{pageName:"Miscellaneous features"},views:{"main@":{templateUrl:a("misc")}}})}])}(),function(){"use strict";angular.module("app.routes").run(["$rootScope","$mdSidenav",function(t,e){t.$on("$stateChangeStart",function(e,a){a.data&&a.data.pageName&&(t.current_page=a.data.pageName)}),t.$on("$viewContentLoaded",function(t,e){window.Prism.highlightAll()}),t.$on("$stateChangeSuccess",function(t,a){e("left").close()})}])}(),function(){"use strict";angular.module("app.config").config(["$authProvider",function(t){t.loginUrl="/api/authenticate/auth"}])}(),function(){"use strict";angular.module("app.config").config(["cfpLoadingBarProvider",function(t){t.includeSpinner=!1}])}(),function(){"use strict";angular.module("app.config").config(["RestangularProvider",function(t){t.setBaseUrl("/api/").setDefaultHeaders({accept:"application/x.laravel.v1+json"})}])}(),function(){"use strict";angular.module("app.config").config(["$mdThemingProvider",function(t){t.theme("default").primaryPalette("indigo").accentPalette("grey").warnPalette("red")}])}(),function(){"use strict";angular.module("app.filters").filter("capitalize",function(){return function(t,e){return t?t.replace(/([^\W_]+[^\s-]*) */g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}):""}})}(),function(){"use strict";angular.module("app.filters").filter("humanReadable",function(){return function(t){if(!t)return"";for(var e=t.split("_"),a=0;a=e)return"";if(t&&t.length>e){if(t=t.substring(0,e),a)for(;" "===t.charAt(t.length-1);)t=t.substr(0,t.length-1);else{var r=t.lastIndexOf(" ");-1!==r&&(t=t.substr(0,r))}return t+"..."}return t}})}(),function(){"use strict";angular.module("app.filters").filter("truncateWords",function(){return function(t,e){if(isNaN(e))return t;if(0>=e)return"";if(t){var a=t.split(/\s+/);a.length>e&&(t=a.slice(0,e).join(" ")+"...")}return t}})}(),function(){"use strict";angular.module("app.filters").filter("trustHtml",["$sce",function(t){return function(e){return t.trustAsHtml(e)}}])}(),function(){"use strict";angular.module("app.filters").filter("ucfirst",function(){return function(t){return t?t.substring(0,1).toUpperCase()+t.substring(1):null}})}(),function(){"use strict";angular.module("app.services").factory("DialogService",["$mdDialog",function(t){return{fromTemplate:function(e,a){var r={templateUrl:"./views/dialogs/"+e+"/"+e+".html"};return a&&(r.scope=a.$new()),t.show(r)},hide:function(){return t.hide()},alert:function(e,a){t.show(t.alert().title(e).content(a).ok("Ok"))},confirm:function(e,a){return t.show(t.confirm().title(e).content(a).ok("Ok").cancel("Cancel"))}}}])}(),function(){"use strict";angular.module("app.services").factory("ToastService",["$mdToast",function(t){var e=6e3,a="top right",r="OK";return{show:function(n){return n?t.show(t.simple().content(n).position(a).action(r).hideDelay(e)):!1},error:function(n){return n?t.show(t.simple().content(n).position(a).theme("warn").action(r).hideDelay(e)):!1}}}])}(),function(){"use strict";angular.module("app.controllers").controller("DialogsCtrl",["$scope","DialogService",function(t,e){t.confirm_message="",t.alertDialog=function(){e.alert("This is an alert title","You can specify some description text in here.")},t.confirmDialog=function(){e.confirm("This is a confirm title","Are you sure you want to do this?").then(function(){t.confirm_message="Confirm Success callback"},function(){t.confirm_message="Confirm Cancel callback"})},t.customDialog=function(){e.fromTemplate("add_users",t)}}])}(),function(){"use strict";angular.module("app.controllers").controller("ElixirCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("GeneratorsCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("HeaderCtrl",["$scope","$rootScope","$mdSidenav","$log",function(t,e,a,r){t.$watch(function(){return e.current_page},function(e){t.current_page=e||"Page Name"}),t.openSideNav=function(){a("left").open()}}])}(),function(){"use strict";angular.module("app.controllers").controller("JwtAuthCtrl",["$scope","$auth","Restangular",function(t,e,a){var r={};t.requestToken=function(){e.login(r).then(function(t){})},t.getData=function(){a.all("authenticate/data").get().then(function(t){},function(t){})}}])}(),function(){"use strict";angular.module("app.controllers").controller("LandingCtrl",["$scope","$mdToast","$mdDialog","$interval","ToastService","DialogService",function(t,e,a,r,n,o){t.promoImage="https://i.imgur.com/ZbLzOPP.jpg",t.icon="send";var i=["office","facebook","twitter","apple","whatsapp","linkedin","windows","accessibility","alarm","aspect_ratio","autorenew","bookmark_outline","dashboard","dns","favorite_outline","get_app","highlight_remove","history","list","picture_in_picture","print","settings_ethernet","settings_power","shopping_cart","spellcheck","swap_horiz","swap_vert","thumb_up","thumbs_up_down","translate","trending_up","visibility","warning","mic","play_circle_outline","repeat","skip_next","call","chat","clear_all","dialpad","dnd_on","forum","location_on","vpn_key","filter_list","inbox","link","remove_circle_outline","save","text_format","access_time","airplanemode_on","bluetooth","data_usage","gps_fixed","now_wallpaper","now_widgets","storage","wifi_tethering","attach_file","format_line_spacing","format_list_numbered","format_quote","vertical_align_center","wrap_text","cloud_queue","file_download","folder_open","cast","headset","keyboard_backspace","mouse","speaker","watch","audiotrack","edit","brush","looks","crop_free","camera","filter_vintage","hdr_strong","photo_camera","slideshow","timer","directions_bike","hotel","local_library","directions_walk","local_cafe","local_pizza","local_florist","my_location","navigation","pin_drop","arrow_back","menu","close","more_horiz","more_vert","refresh","phone_paused","vibration","cake","group","mood","person","notifications_none","plus_one","school","share","star_outline"],l=0;r(function(){t.icon=i[++l],l>112&&(l=0)},2e3)}])}(),function(){"use strict";angular.module("app.controllers").controller("LoginCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("MiscCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("SidebarCtrl",["$scope","$state",function(t,e){}])}(),function(){"use strict";angular.module("app.controllers").controller("RestApiCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("DashboardCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("ToastsCtrl",["$scope","ToastService",function(t,e){t.toastSuccess=function(){e.show("User added successfully!")},t.toastError=function(){e.error("Connection interrupted!")}}])}(),function(){"use strict";angular.module("app.controllers").controller("UnsupportedBrowserCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("AddUsersCtrl",["$scope","DialogService",function(t,e){t.save=function(){e.hide()},t.hide=function(){e.hide()}}])}(),function(){"use strict";angular.module("app.controllers").controller("DataListingCtrl",function(){})}(),function(){"use strict";angular.module("app.directives").directive("dataListing",function(){return{restrict:"EA",templateUrl:"views/directives/data_listing/data_listing.html",controller:"DataListingCtrl",link:function(t,e,a){}}})}();
\ No newline at end of file
+!function(){"use strict";angular.module("app",["app.controllers","app.filters","app.services","app.directives","app.routes","app.config"]);angular.module("app.routes",["ui.router","ngStorage","satellizer"]),angular.module("app.controllers",["ui.router","ngMaterial","ngStorage","restangular","ngMdIcons","angular-loading-bar"]),angular.module("app.filters",[]),angular.module("app.services",["ui.router","ngStorage","restangular"]),angular.module("app.directives",[]),angular.module("app.config",[])}(),function(){"use strict";angular.module("app.routes").config(["$stateProvider","$urlRouterProvider",function(t,e){var a=function(t){return"./views/app/"+t+"/"+t+".html"};e.otherwise("/"),t.state("app",{"abstract":!0,views:{sidebar:{templateUrl:a("sidebar")},header:{templateUrl:a("header")},main:{}}}).state("app.landing",{url:"/",data:{pageName:"Overview"},views:{"main@":{templateUrl:a("landing")}}}).state("app.install",{url:"/install",data:{pageName:"Install"},views:{"main@":{templateUrl:a("install")}}}).state("app.tabs",{url:"/features",data:{pageName:"Features"},views:{"main@":{templateUrl:a("tabs")}}}).state("app.deploy",{url:"/deploy",data:{pageName:"Deploy"},views:{"main@":{templateUrl:a("deploy")}}}).state("app.theme",{url:"/theme",data:{pageName:"Theme"},views:{"main@":{templateUrl:a("theme")}}}).state("app.toasts",{url:"/toasts",data:{pageName:"Toasts"},views:{"main@":{templateUrl:a("toasts")}}}).state("app.dialogs",{url:"/dialogs",data:{pageName:"Dialogs"},views:{"main@":{templateUrl:a("dialogs")}}}).state("app.generators",{url:"/generators",data:{pageName:"Artisan generators"},views:{"main@":{templateUrl:a("generators")}}}).state("app.jwt_auth",{url:"/jwt_auth",data:{pageName:"JSON Web Token Authentication"},views:{"main@":{templateUrl:a("jwt_auth")}}}).state("app.elixir",{url:"/elixir",data:{pageName:"Elixir"},views:{"main@":{templateUrl:a("elixir")}}}).state("app.rest_api",{url:"/rest_api",data:{pageName:"REST API"},views:{"main@":{templateUrl:a("rest_api")}}}).state("app.unsupported_browser",{url:"/unsupported_browser",data:{pageName:"Unsupported Browser"},views:{"main@":{templateUrl:a("unsupported_browser")}}}).state("app.misc",{url:"/misc",data:{pageName:"Miscellaneous features"},views:{"main@":{templateUrl:a("misc")}}})}])}(),function(){"use strict";angular.module("app.routes").run(["$rootScope","$mdSidenav",function(t,e){t.$on("$stateChangeStart",function(e,a){a.data&&a.data.pageName&&(t.current_page=a.data.pageName)}),t.$on("$viewContentLoaded",function(t,e){window.Prism.highlightAll()}),t.$on("$stateChangeSuccess",function(t,a){e("left").close()})}])}(),function(){"use strict";angular.module("app.config").config(["$authProvider",function(t){t.loginUrl="/api/authenticate/auth"}])}(),function(){"use strict";angular.module("app.config").config(["cfpLoadingBarProvider",function(t){t.includeSpinner=!1}])}(),function(){"use strict";angular.module("app.config").config(["RestangularProvider",function(t){t.setBaseUrl("/api/").setDefaultHeaders({accept:"application/x.laravel.v1+json"})}])}(),function(){"use strict";angular.module("app.config").config(["$mdThemingProvider",function(t){t.theme("default").primaryPalette("indigo").accentPalette("grey").warnPalette("red")}])}(),function(){"use strict";angular.module("app.filters").filter("capitalize",function(){return function(t,e){return t?t.replace(/([^\W_]+[^\s-]*) */g,function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}):""}})}(),function(){"use strict";angular.module("app.filters").filter("humanReadable",function(){return function(t){if(!t)return"";for(var e=t.split("_"),a=0;a=e)return"";if(t&&t.length>e){if(t=t.substring(0,e),a)for(;" "===t.charAt(t.length-1);)t=t.substr(0,t.length-1);else{var r=t.lastIndexOf(" ");-1!==r&&(t=t.substr(0,r))}return t+"..."}return t}})}(),function(){"use strict";angular.module("app.filters").filter("truncateWords",function(){return function(t,e){if(isNaN(e))return t;if(0>=e)return"";if(t){var a=t.split(/\s+/);a.length>e&&(t=a.slice(0,e).join(" ")+"...")}return t}})}(),function(){"use strict";angular.module("app.filters").filter("trustHtml",["$sce",function(t){return function(e){return t.trustAsHtml(e)}}])}(),function(){"use strict";angular.module("app.filters").filter("ucfirst",function(){return function(t){return t?t.substring(0,1).toUpperCase()+t.substring(1):null}})}(),function(){"use strict";angular.module("app.services").factory("DialogService",["$mdDialog",function(t){return{fromTemplate:function(e,a){var r={templateUrl:"./views/dialogs/"+e+"/"+e+".html"};return a&&(r.scope=a.$new()),t.show(r)},hide:function(){return t.hide()},alert:function(e,a){t.show(t.alert().title(e).content(a).ok("Ok"))},confirm:function(e,a){return t.show(t.confirm().title(e).content(a).ok("Ok").cancel("Cancel"))}}}])}(),function(){"use strict";angular.module("app.services").factory("ToastService",["$mdToast",function(t){var e=6e3,a="top right",r="OK";return{show:function(n){return n?t.show(t.simple().content(n).position(a).action(r).hideDelay(e)):!1},error:function(n){return n?t.show(t.simple().content(n).position(a).theme("warn").action(r).hideDelay(e)):!1}}}])}(),function(){"use strict";angular.module("app.controllers").controller("DialogsCtrl",["$scope","DialogService",function(t,e){t.confirm_message="",t.alertDialog=function(){e.alert("This is an alert title","You can specify some description text in here.")},t.confirmDialog=function(){e.confirm("This is a confirm title","Are you sure you want to do this?").then(function(){t.confirm_message="Confirm Success callback"},function(){t.confirm_message="Confirm Cancel callback"})},t.customDialog=function(){e.fromTemplate("add_users",t)}}])}(),function(){"use strict";angular.module("app.controllers").controller("GeneratorsCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("ElixirCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("HeaderCtrl",["$scope","$rootScope","$mdSidenav","$log",function(t,e,a,r){t.$watch(function(){return e.current_page},function(e){t.current_page=e||"Page Name"}),t.openSideNav=function(){a("left").open()}}])}(),function(){"use strict";angular.module("app.controllers").controller("JwtAuthCtrl",["$scope","$auth","Restangular",function(t,e,a){var r={};t.requestToken=function(){e.login(r).then(function(t){})},t.getData=function(){a.all("authenticate/data").get().then(function(t){},function(t){})}}])}(),function(){"use strict";angular.module("app.controllers").controller("LandingCtrl",["$scope","$mdToast","$mdDialog","$interval","ToastService","DialogService",function(t,e,a,r,n,o){t.promoImage="https://i.imgur.com/ZbLzOPP.jpg",t.icon="send";var i=["office","facebook","twitter","apple","whatsapp","linkedin","windows","accessibility","alarm","aspect_ratio","autorenew","bookmark_outline","dashboard","dns","favorite_outline","get_app","highlight_remove","history","list","picture_in_picture","print","settings_ethernet","settings_power","shopping_cart","spellcheck","swap_horiz","swap_vert","thumb_up","thumbs_up_down","translate","trending_up","visibility","warning","mic","play_circle_outline","repeat","skip_next","call","chat","clear_all","dialpad","dnd_on","forum","location_on","vpn_key","filter_list","inbox","link","remove_circle_outline","save","text_format","access_time","airplanemode_on","bluetooth","data_usage","gps_fixed","now_wallpaper","now_widgets","storage","wifi_tethering","attach_file","format_line_spacing","format_list_numbered","format_quote","vertical_align_center","wrap_text","cloud_queue","file_download","folder_open","cast","headset","keyboard_backspace","mouse","speaker","watch","audiotrack","edit","brush","looks","crop_free","camera","filter_vintage","hdr_strong","photo_camera","slideshow","timer","directions_bike","hotel","local_library","directions_walk","local_cafe","local_pizza","local_florist","my_location","navigation","pin_drop","arrow_back","menu","close","more_horiz","more_vert","refresh","phone_paused","vibration","cake","group","mood","person","notifications_none","plus_one","school","share","star_outline"],l=0;r(function(){t.icon=i[++l],l>112&&(l=0)},2e3)}])}(),function(){"use strict";angular.module("app.controllers").controller("LoginCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("MiscCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("RestApiCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("SidebarCtrl",["$scope","$state",function(t,e){}])}(),function(){"use strict";angular.module("app.controllers").controller("DashboardCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("ToastsCtrl",["$scope","ToastService",function(t,e){t.toastSuccess=function(){e.show("User added successfully!")},t.toastError=function(){e.error("Connection interrupted!")}}])}(),function(){"use strict";angular.module("app.controllers").controller("UnsupportedBrowserCtrl",function(){})}(),function(){"use strict";angular.module("app.controllers").controller("AddUsersCtrl",["$scope","DialogService",function(t,e){t.save=function(){e.hide()},t.hide=function(){e.hide()}}])}(),function(){"use strict";angular.module("app.controllers").controller("DataListingCtrl",function(){})}(),function(){"use strict";angular.module("app.directives").directive("dataListing",function(){return{restrict:"EA",templateUrl:"views/directives/data_listing/data_listing.html",controller:"DataListingCtrl",link:function(t,e,a){}}})}();
\ No newline at end of file
diff --git a/public/views/app/misc/misc.html b/public/views/app/misc/misc.html
index ae71ba0..35fcf01 100644
--- a/public/views/app/misc/misc.html
+++ b/public/views/app/misc/misc.html
@@ -20,6 +20,22 @@ Debugbar
+
+
+
+
+
Cross Origin Resource Sharing (CORS)
+
+
+
+
+
+ Laravel-cors works out of the box. All API endpoints return the allow-access-origin header. The cors middleware is enabled in the global middlewares in app\Http\kernel.php.
+
+
+
+
+
@@ -58,4 +74,4 @@ Angular Filters
-
\ No newline at end of file
+
diff --git a/readme.md b/readme.md
index 25752c2..57bd4e5 100644
--- a/readme.md
+++ b/readme.md
@@ -1,5 +1,5 @@
## Laravel 5.1 Angular Material Starter
-> Version 2.9
+> Version 2.10
[![Latest Stable Version](https://poser.pugx.org/jadjoubran/laravel5-angular-material-starter/v/stable)](https://packagist.org/packages/jadjoubran/laravel5-angular-material-starter)
[![Build Status](https://travis-ci.org/jadjoubran/laravel5-angular-material-starter.svg?branch=master)](https://travis-ci.org/jadjoubran/laravel5-angular-material-starter)
@@ -78,7 +78,7 @@ npm install -g jshint
```
1. run `jshint angular/**/*.js` to make sure that your javascript code is linted.
-2. run `gulp --production`. Do not send Pull Requests without running this command
+2. run `gulp --production` at the end if you changed any HTML, Less or JS. Do not send Pull Requests without running this command (unless you haven't touched the frontend)
3. delete `.map` files `rm public/css/app.css.map public/css/vendor.css.map public/js/app.map public/js/vendor.js.map`
4. If you are adding/modifying backend functionality, make sure to include the apprioriate `test`. Let me know if you need help writing the test