void register() Register the service provider. Return Value void
array when() Get the events that trigger this service provider to register. Return Value array
mixed __call(string $method, array $parameters) Dynamically handle missing method calls. Parameters string $method array $parameters Return Value mixed
void __construct(Application $app) Create a new service provider instance. Parameters Application $app Return Value void
Pivot class Pivot extends Model (View source) Constants CREATED_AT The name of the "created at" column. UPDATED_AT The name of the "updated at" column.
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
void addHidden(array|string|null $attributes = null) Add hidden attributes for the model. Parameters array|string|null $attributes Return Value void
void addObservableEvents(array|mixed $observables) Add an observable event name. Parameters array|mixed $observables Return Value void
void addVisible(array|string|null $attributes = null) Add visible attributes for the model. Parameters array|string|null $attributes Return Value void
static Collection|Model[] all(array|mixed $columns = array('*')) Get all of the models from the database. Parameters array|mixed $columns Return Value Collection|Model[]
Page 9579 of 11844