From e33d2b854adac9c31a7e757aeed8c9421cd05660 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 23 May 2015 22:33:58 +0200 Subject: Disable laravel session cookie --- README.md | 1 + src/routes.php | 4 ++-- 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 @@ version('v1', ['protected' => false], function ($api) { @@ -57,4 +57,4 @@ Route::group(array('https'), function() use ($api) { }); -}); \ No newline at end of file +}); -- cgit v1.2.3