MiddlewareMakeCommand::choice()

string choice(string $question, array $choices, string $default = null, mixed $attempts = null, bool $multiple = null) Give the user a single choice from an array of answers. Parameters string $question array $choices string $default mixed $attempts bool $multiple Return Value string

Repository::rememberForever()

mixed rememberForever(string $key, Closure $callback) Get an item from the cache, or store the default value forever. Parameters string $key Closure $callback Return Value mixed

Gate::allows()

bool allows(string $ability, array|mixed $arguments = array()) Determine if the given ability should be granted for the current user. Parameters string $ability array|mixed $arguments Return Value bool

MorphOne::firstOrCreate()

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

ExceptionHandler

ExceptionHandler interface ExceptionHandler (View source) Methods void report(Exception $e) Report or log an exception. Response render(Request $request, Exception $e) Render an exception into an HTTP response. void renderForConsole(OutputInterface $output, Exception $e) Render an exception to the console.

QueueInterface::later()

mixed later(DateTime|int $delay, string $job, mixed $data = '', string $queue = null) Push a new job onto the queue after a delay. Parameters DateTime|int $delay string $job mixed $data string $queue Return Value mixed

RouteCacheCommand::__construct()

void __construct(Filesystem $files) Create a new route command instance. Parameters Filesystem $files Return Value void

ReminderServiceProvider::guessPackagePath()

string guessPackagePath() Guess the package path for the provider. Return Value string

MandrillTransport::__construct()

void __construct(ClientInterface $client, string $key) Create a new Mandrill transport instance. Parameters ClientInterface $client string $key Return Value void

Notification

Notification class Notification extends Facade (View source) Methods static void swap(mixed $instance) Hotswap the underlying instance behind the facade. from Facade static void spy() Convert the facade into a Mockery spy. from Facade static Expectation shouldReceive() Initiate a mock expectation on the facade. from Facade static mixed getFacadeRoot() Get the root object behind the facade. from Facade static void clearResolvedInstance(string $name) Clear a resolved facade