User::belongsToMany()

BelongsToMany belongsToMany(string $related, string $table = null, string $foreignKey = null, string $otherKey = null, string $relation = null) Define a many-to-many relationship. Parameters string $related string $table string $foreignKey string $otherKey string $relation Return Value BelongsToMany

User::belongsTo()

BelongsTo belongsTo(string $related, string $foreignKey = null, string $otherKey = null, string $relation = null) Define an inverse one-to-one or many relationship. Parameters string $related string $foreignKey string $otherKey string $relation Return Value BelongsTo

User::all()

static Collection|Model[] all(array|mixed $columns = array('*')) Get all of the models from the database. Parameters array|mixed $columns Return Value Collection|Model[]

User::attributesToArray()

array attributesToArray() Convert the model's attributes to an array. Return Value array

User::append()

$this append(array|string $attributes) Append attributes to query when building a query. Parameters array|string $attributes Return Value $this

User::addObservableEvents()

void addObservableEvents(array|mixed $observables) Add an observable event name. Parameters array|mixed $observables Return Value void

User::addVisible()

void addVisible(array|string|null $attributes = null) Add visible attributes for the model. Parameters array|string|null $attributes Return Value void

User::addGlobalScope()

static mixed addGlobalScope(Scope|Closure|string $scope, Closure $implementation = null) Register a new global scope on the model. Parameters Scope|Closure|string $scope Closure $implementation Return Value mixed Exceptions InvalidArgumentException

User::addHidden()

void addHidden(array|string|null $attributes = null) Add hidden attributes for the model. Parameters array|string|null $attributes Return Value void

User

User class User extends Model implements Authenticatable, Authorizable, CanResetPassword (View source) Traits Authenticatable Authorizable CanResetPassword