User::newPivot()

Pivot newPivot(Model $parent, array $attributes, string $table, bool $exists) Create a new pivot model instance. Parameters Model $parent array $attributes string $table bool $exists Return Value Pivot

Builder

Builder class Builder (View source) Methods void __construct(Connection $connection) Create a new database Schema manager. bool hasTable(string $table) Determine if the given table exists. bool hasColumn(string $table, string $column) Determine if the given table has a given column. bool hasColumns(string $table, array $columns) Determine if the given table has given columns. string getColumnType(string $table, string $column) Get the data type for the given column nam

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

SqlServerGrammar::compileCreate()

string compileCreate(Blueprint $blueprint, Fluent $command) Compile a create table command. Parameters Blueprint $blueprint Fluent $command Return Value string

SeederMakeCommand::askWithCompletion()

string askWithCompletion(string $question, array $choices, string $default = null) Prompt the user for input with auto completion. Parameters string $question array $choices string $default Return Value string

ConfigClearCommand

ConfigClearCommand class ConfigClearCommand extends Command (View source) Methods void __construct(Filesystem $files) Create a new config clear command instance. int run(InputInterface $input, OutputInterface $output) Run the console command. from Command int call(string $command, array $arguments = array()) Call another console command. from Command int callSilent(string $command, array $arguments = array()) Call another console command silently. from Command string|array

DatabaseServiceProvider::boot()

void boot() Bootstrap the application events. Return Value void

EventMakeCommand::ask()

string ask(string $question, string $default = null) Prompt the user for input. Parameters string $question string $default Return Value string

HTTP Requests

HTTP Requests Accessing The Request Request Path & Method PSR-7 Requests Retrieving Input Old Input Cookies Files Retrieving Uploaded Files Storing Uploaded Files Accessing The Request To obtain an instance of the current HTTP request via dependency injection, you should type-hint the Illuminate\Http\Request class on your controller method. The incoming request instance will automatically be injected by the service container: <?php namespace App\Http\Controllers; use Illuminate

Redirector::secure()

RedirectResponse secure(string $path, int $status = 302, array $headers = array()) Create a new redirect response to the given HTTPS path. Parameters string $path int $status array $headers Return Value RedirectResponse