develop
Last change
on this file since d795fa6 was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago |
added documents crud, added last_seen_to_user, edited views
|
-
Property mode
set to
100644
|
File size:
277 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace App\Models;
|
---|
4 |
|
---|
5 | use Illuminate\Database\Eloquent\Model;
|
---|
6 |
|
---|
7 | class File extends Model
|
---|
8 | {
|
---|
9 | protected $table = "files";
|
---|
10 | protected $fillable = ["link", "document_id"];
|
---|
11 |
|
---|
12 | public function document()
|
---|
13 | {
|
---|
14 | return $this->belongsTo(Document::class);
|
---|
15 | }
|
---|
16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.