aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2015-05-23 22:33:58 +0200
committerCamil Staps2015-05-23 22:33:58 +0200
commite33d2b854adac9c31a7e757aeed8c9421cd05660 (patch)
tree3f55c45a7966c0e590d2a3b4137deff9b88522ef
parentreadme (diff)
Disable laravel session cookie
-rw-r--r--README.md1
-rw-r--r--src/routes.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index cc67d7f..a6fa886 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,7 @@ RESTful PHP API for Botleagues
* `APP_ENV`, `APP_DEBUG`, `APP_KEY`, `APP_URL`
* `DB_HOST`, `DB_DATABASE`, `DB_USERNAME`, `DB_PASSWORD`
* `API_VERSION=v1`, `API_DEBUG`, `API_DOMAIN`
+ * `SESSION_DRIVER=array`, to disable the `laravel_session` cookie
* In your `app/Http/Middleware/VerifyCsrfToken.php`, replace the `handle()` function with:
diff --git a/src/routes.php b/src/routes.php
index def14d1..d424db8 100644
--- a/src/routes.php
+++ b/src/routes.php
@@ -1,5 +1,5 @@
<?php
-Route::group(array('https'), function() use ($api) {
+Route::group(['https'], function() use ($api) {
$api->version('v1', ['protected' => false], function ($api) {
@@ -57,4 +57,4 @@ Route::group(array('https'), function() use ($api) {
});
-}); \ No newline at end of file
+});