\apibvw\ModelUser

Model class for a User. It stores its username, first name, surname, email and time and date of his registry

Summary

Methods
Properties
Constants
sessions()
$timestamps
No constants found
No protected methods found
$table
$primaryKey
N/A
No private methods found
No private properties found
N/A

Properties

$timestamps

$timestamps : boolean

For BVW, we use our own timestamp, not the ones provided by the eloquent class

Type

boolean

$table

$table : string

The database table used by the model. In this case, 'user'.

Type

string

$primaryKey

$primaryKey : string

The primary key for the table, 'username' in our case

Type

string

Methods

sessions()

sessions()

Get the sessions of a user