Projekt

Obecné

Profil

Stáhnout (485 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
<?php
2

    
3
namespace App;
4

    
5
use Illuminate\Database\Eloquent\Model;
6

    
7
class Category extends Model
8
{
9
    // Table Name
10
    protected $table = 'categories';
11
    // Primary Key
12
    public $primaryKey = 'id';
13

    
14
    /**
15
     * Indicates if the model should be timestamped.
16
     *
17
     * @var bool
18
     */
19
    public $timestamps = false;
20

    
21
    /**
22
     * Get the artefacts for the category.
23
     */
24
    public function artefacts()
25
    {
26
        return $this->belongsToMany('App\Artefact');
27
    }
28
}
(4-4/6)