ApplicationTrait::flushSession()

void flushSession() Flush all of the current session data. Return Value void

ApplicationTrait::expectsEvents()

$this expectsEvents(array|mixed $events) Specify a list of events that should be fired for the given operation. These events will be mocked, so that handlers will not actually be executed. Parameters array|mixed $events Return Value $this

ApplicationTrait::be()

void be(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. Parameters Authenticatable $user string|null $driver Return Value void

ApplicationTrait::artisan()

int artisan(string $command, array $parameters = array()) Call artisan command and return code. Parameters string $command array $parameters Return Value int

ApplicationTrait::actingAs()

$this actingAs(Authenticatable $user, string|null $driver = null) Set the currently logged in user for the application. Parameters Authenticatable $user string|null $driver Return Value $this

ApplicationTrait

ApplicationTrait trait ApplicationTrait (View source) Methods $this expectsEvents(array|mixed $events) Specify a list of events that should be fired for the given operation. $this withSession(array $data) Set the session to the given array. void session(array $data) Set the session to the given array. void flushSession() Flush all of the current session data. $this withoutMiddleware() Disable middleware for the test. $this actingAs(Authenticatable $user, string|nu

Application::__set()

void __set(string $key, mixed $value) Dynamically set container services. Parameters string $key mixed $value Return Value void

Application::__get()

mixed __get(string $key) Dynamically access container services. Parameters string $key Return Value mixed

Application::__construct()

void __construct(string|null $basePath = null) Create a new Illuminate application instance. Parameters string|null $basePath Return Value void

Application::__construct()

void __construct(Container $laravel, Dispatcher $events, string $version) Create a new Artisan console application. Parameters Container $laravel Dispatcher $events string $version Return Value void