Merge rPFd86028310e5c: Added a Laravel IDE helper and type-hinted the cover art upload method.

This commit is contained in:
Kelvin Zhang 2015-09-10 11:23:12 +01:00
parent c802c0483f
commit 8de0cb1932

View file

@ -6,6 +6,7 @@ use External;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\URL;
use Symfony\Component\HttpFoundation\File\UploadedFile;
class Image extends Model
{
@ -34,7 +35,7 @@ class Image extends Model
return null;
}
public static function upload($file, $user)
public static function upload(UploadedFile $file, $user)
{
$userId = $user;
if ($user instanceof User) {