mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-01-31 03:16:42 +01:00
Merge rPFd86028310e5c: Added a Laravel IDE helper and type-hinted the cover art upload method.
This commit is contained in:
parent
c802c0483f
commit
8de0cb1932
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue