mirror of
https://github.com/Intervention/image.git
synced 2025-09-01 09:52:59 +02:00
disabled session cookies for image route
This commit is contained in:
@@ -51,6 +51,9 @@ class ImageServiceProvider extends ServiceProvider
|
||||
// setup image manipulator route
|
||||
$app['router']->get($config->get('imagecache::route').'/{template}/{filename}', array('as' => 'imagecache', function ($template, $filename) use ($app, $config) {
|
||||
|
||||
// disable session cookies for image route
|
||||
$app['config']->set('session.driver', 'array');
|
||||
|
||||
// find file
|
||||
foreach ($config->get('imagecache::paths') as $path) {
|
||||
$image_path = $path.'/'.$filename;
|
||||
|
Reference in New Issue
Block a user