mercredi 2 mars 2016

Laravel Storage S3 causing nesting level abort

I have a loop setup to fetch a function to get an image based on id and type. Not sure what I'm doing wrong, the loop is probably.

I can save files to S3 without any issues.

Helpers.php

use Storage;
//
public static function getImage($id, $type)
{
   if(Storage::disk('s3')->exists('/images/' . $type . '/' . $id . '.png'))
   {
      return Storage::disk('s3')->get('/images/' . $type . '/' . $id . '.png');
   }
}

causes:

FatalErrorException in Uri.php line 521:
Maximum function nesting level of '100' reached, aborting!



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1UArhG6
via IFTTT

Aucun commentaire:

Enregistrer un commentaire