Revize e765fd91
Přidáno uživatelem Marek Lovčí před téměř 5 roky(ů)
app/Category.php | ||
---|---|---|
9 | 9 |
// Table Name |
10 | 10 |
protected $table = 'categories'; |
11 | 11 |
// Primary Key |
12 |
public $primaryKey = 'id';//unnecessery? |
|
13 |
|
|
12 |
public $primaryKey = 'id'; |
|
14 | 13 |
|
15 | 14 |
/** |
16 | 15 |
* Indicates if the model should be timestamped. |
... | ... | |
20 | 19 |
public $timestamps = false; |
21 | 20 |
|
22 | 21 |
/** |
23 |
* Get the artefacts for the catagory.
|
|
22 |
* Get the artefacts for the category.
|
|
24 | 23 |
*/ |
25 | 24 |
public function artefacts() |
26 | 25 |
{ |
27 | 26 |
return $this->belongsToMany('App\Artefact'); |
28 | 27 |
} |
29 |
|
|
30 |
|
|
31 | 28 |
} |
Také k dispozici: Unified diff
Relace Metadata|User.
Issue #7847 @0.25h