Revize e765fd91
Přidáno uživatelem Marek Lovčí před téměř 5 roky(ů)
app/Artefact.php | ||
---|---|---|
7 | 7 |
class Artefact extends Model |
8 | 8 |
{ |
9 | 9 |
// Table Name |
10 |
protected $table = 'artefacts';//unnecessery?
|
|
10 |
protected $table = 'artefacts'; |
|
11 | 11 |
// Primary Key |
12 |
public $primaryKey = 'id';//unnecessery? |
|
13 |
|
|
14 |
/** |
|
15 |
* The model's default values for attributes. |
|
16 |
* |
|
17 |
* @var array |
|
18 |
*/ |
|
19 |
/*protected $attributes = [ |
|
20 |
'likes' => 0, |
|
21 |
];*/ |
|
12 |
public $primaryKey = 'id'; |
|
22 | 13 |
|
23 | 14 |
/** |
24 | 15 |
* Indicates if the model should be timestamped. |
... | ... | |
50 | 41 |
{ |
51 | 42 |
return $this->belongsToMany('App\User'); |
52 | 43 |
} |
53 |
|
|
54 |
|
|
55 |
|
|
56 | 44 |
} |
Také k dispozici: Unified diff
Relace Metadata|User.
Issue #7847 @0.25h