diff options
author | Camil Staps | 2015-05-23 22:33:58 +0200 |
---|---|---|
committer | Camil Staps | 2015-05-23 22:33:58 +0200 |
commit | e33d2b854adac9c31a7e757aeed8c9421cd05660 (patch) | |
tree | 3f55c45a7966c0e590d2a3b4137deff9b88522ef | |
parent | readme (diff) |
Disable laravel session cookie
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | src/routes.php | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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 +}); |