Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 43bb92a9

Přidáno uživatelem Marek Zábran před více než 4 roky(ů)

Úprava databáze - přidání uživatelů a reference lajků.
Issue #7787 @2h

Zobrazit rozdíly:

app/User.php
10 10
{
11 11
    use Notifiable;
12 12

  
13
    // Table Name
14
    protected $table = 'users';
15
    // Primary Key
16
    public $primaryKey = 'id';//unnecessery?
17

  
13 18
    /**
14 19
     * The attributes that are mass assignable.
15 20
     *
16 21
     * @var array
17 22
     */
18 23
    protected $fillable = [
19
        'name', 'email', 'password',
24
         'email',
20 25
    ];
21 26

  
22 27
    /**
......
25 30
     * @var array
26 31
     */
27 32
    protected $hidden = [
28
        'password', 'remember_token',
33
        'remember_token',
29 34
    ];
30 35

  
31 36
    /**
......
36 41
    protected $casts = [
37 42
        'email_verified_at' => 'datetime',
38 43
    ];
44

  
45
    /**
46
     * Get the artefacts for the user.
47
     */
48
    public function likes()
49
    {
50
        return $this->hasMany('App\Artefact');
51
    }
39 52
}

Také k dispozici: Unified diff