EventFake::fired()

Collection fired(string $event, callable|null $callback = null) Get all of the events matching a truth-test callback. Parameters string $event callable|null $callback Return Value Collection

EventFake::until()

mixed until(string $event, array $payload = array()) Fire an event until the first non-null response is returned. Parameters string $event array $payload Return Value mixed

MorphOneOrMany::firstOrCreate()

Model firstOrCreate(array $attributes) Get the first related record matching the attributes or create it. Parameters array $attributes Return Value Model

HTTP Session

HTTP Session Introduction Configuration Driver Prerequisites Using The Session Retrieving Data Storing Data Flash Data Deleting Data Regenerating The Session ID Adding Custom Session Drivers Implementing The Driver Registering The Driver Introduction Since HTTP driven applications are stateless, sessions provide a way to store information about the user across multiple requests. Laravel ships with a variety of session backends that are accessed through an expressive, unified API. Suppor

Factory

Factory class Factory (View source) Methods void __construct(Request $request, Factory $view, TranslatorInterface $trans, string $pageName = 'page') Create a new pagination factory. Paginator make(array $items, int $total, int|null $perPage = null) Get a new paginator instance. View getPaginationView(Paginator $paginator, string $view = null) Get the pagination view. int getCurrentPage() Get the number of the current page. void setCurrentPage(int $number) Set the numbe

RouteClearCommand::callSilent()

int callSilent(string $command, array $arguments = array()) Call another console command silently. Parameters string $command array $arguments Return Value int

Model::saving()

static void saving(Closure|string $callback, int $priority) Register a saving model event with the dispatcher. Parameters Closure|string $callback int $priority Return Value void

Guard::getProvider()

UserProvider getProvider() Get the user provider used by the guard. Return Value UserProvider

HashServiceProvider::pathsToPublish()

static array pathsToPublish(string $provider = null, string $group = null) Get the paths to publish. Parameters string $provider string $group Return Value array

Str::random()

static string random(int $length = 16) Generate a more truly "random" alpha-numeric string. Parameters int $length Return Value string