Last active
February 1, 2018 18:46
-
-
Save mitrallex/a7c1f6d54d40c2a52a6aaffaf258bc5f to your computer and use it in GitHub Desktop.
laravel-file-hosting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class File extends Model | |
{ | |
protected $fillable = [ | |
'name', 'type', 'extension', 'user_id' | |
]; | |
public function user() | |
{ | |
return $this->belongsTo(User::class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment