Created
June 17, 2013 08:18
-
-
Save zmax/5795396 to your computer and use it in GitHub Desktop.
Laravel CodeIntel IDE helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php die("Access denied!"); | |
/** | |
* ---------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER ------------------------ | |
* Laravel IDE Helper <http://LaravelBook.com> | |
* Implements code completion for Laravel 4 in JetBrains PhpStorm and SublimeText 2 | |
* -------------------------------------------------------------------------------- | |
*/ | |
/** | |
* @var static void strength Hash strength. | |
* @var static void saltLength Salt length. | |
* @method static string hash(string $string) Hash string. | |
* @method static bool checkhash(string $string, string $hashedString) Check string against hashed string. | |
* @method static string createSalt() Create a random string for a salt. | |
*/ | |
class Hash extends Illuminate\Hashing\BcryptHasher {} | |
/** | |
* @method static bool check() Determine if the current user is authenticated. | |
* @method static bool guest() Determine if the current user is a guest. | |
* @method static void user() Get the currently authenticated user. | |
* @method static bool once(array $credentials) Log a user into the application without sessions or cookies. | |
* @method static bool validate(array $credentials) Validate a user's credentials. | |
* @method static void basic(string $field, \Symfony\Component\HttpFoundation\Request $request) Attempt to authenticate using HTTP Basic Auth. | |
* @method static void onceBasic(string $field, \Symfony\Component\HttpFoundation\Request $request) Perform a stateless HTTP Basic login attempt. | |
* @method static bool attempt(array $credentials, bool $remember, bool $login) Attempt to authenticate a user using the given credentials. | |
* @method static void attempting(mixed $callback) Register an authentication attempt event listener. | |
* @method static void login(\Illuminate\Auth\UserInterface $user, bool $remember) Log a user into the application. | |
* @method static void loginUsingId(mixed $id, bool $remember) Log the given user ID into the application. | |
* @method static void logout() Log the user out of the application. | |
* @method static array getQueuedCookies() Get the cookies queued by the guard. | |
* @method static void getCookieJar() Get the cookie creator instance used by the guard. | |
* @method static void setCookieJar(\Illuminate\Cookie\CookieJar $cookie) Set the cookie creator instance used by the guard. | |
* @method static void getDispatcher() Get the event dispatcher instance. | |
* @method static void setDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance. | |
* @method static void getSession() Get the session store used by the guard. | |
* @method static void getProvider() Get the user provider used by the guard. | |
* @method static void setProvider(\Illuminate\Auth\UserProviderInterface $provider) Set the user provider used by the guard. | |
* @method static void getUser() Return the currently cached user of the application. | |
* @method static void setUser(\Illuminate\Auth\UserInterface $user) Set the current user of the application. | |
* @method static void getRequest() Get the current request instance. | |
* @method static void setRequest(\Symfony\Component\HttpFoundation\Request) Set the current request instance. | |
* @method static string getName() Get a unique identifier for the auth session value. | |
* @method static string getRecallerName() Get the name of the cookie used to store the "recaller". | |
*/ | |
class Auth extends Illuminate\Auth\Guard {} | |
/** | |
* @method static bool has(string $key) Determine if the given configuration value exists. | |
* @method static bool hasGroup(string $key) Determine if a configuration group exists. | |
* @method static mixed get(string $key, mixed $default) Get the specified configuration value. | |
* @method static void set(string $key, mixed $value) Set a given configuration value. | |
* @method static void getEnvironment(string $package, string $hint, string $namespace) Register a package for cascading configuration. | |
* @method static void afterLoading(string $namespace, Closure $callback) Register an after load callback for a given namespace. | |
* @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. | |
* @method static array getNamespaces() Returns all registered namespaces with the config | |
* @method static void getLoader() Get the loader implementation. | |
* @method static void setLoader(\Illuminate\Config\LoaderInterface $loader) Set the loader implementation. | |
* @method static string getEnvironment() Get the current configuration environment. | |
* @method static array getAfterLoadCallbacks() Get the after load callback array. | |
* @method static array getItems() Get all of the configuration items. | |
* @method static bool offsetExists(string $key) Determine if the given configuration option exists. | |
* @method static bool offsetGet(string $key) Get a configuration option. | |
* @method static void offsetSet(string $key, string $value) Set a configuration option. | |
* @method static void offsetUnset(string $key) Unset a configuration option. | |
*/ | |
class Config extends Illuminate\Config\Repository {} | |
/** | |
* @method static bool has(string $key) Determine if a cookie exists and is not null. | |
* @method static mixed get(string $key, mixed $default) Get the value of the given cookie. | |
* @method static void make(string $name, string $value, int $minutes, string $path, string $domain, bool $secure, bool $httpOnly) Create a new cookie instance. | |
* @method static void forever(string $name, string $value, string $path, string $domain, bool $secure, bool $httpOnly) Create a cookie that lasts "forever" (five years). | |
* @method static void forget(string $name) Expire the given cookie. | |
* @method static void setDefaultPathAndDomain(string $path, string $domain) Set the default path and domain for the jar. | |
* @method static void getRequest() Get the request instance. | |
* @method static void getEncrypter() Get the encrypter instance. | |
*/ | |
class Cookie extends Illuminate\Cookie\CookieJar {} | |
/** | |
* @method static void useDefaultQueryGrammar() Set the query grammar to the default implementation. | |
* @method static void useDefaultSchemaGrammar() Set the schema grammar to the default implementation. | |
* @method static void useDefaultPostProcessor() Set the query post processor to the default implementation. | |
* @method static void getSchemaBuilder() Get a schema builder instance for the connection. | |
* @method static void table(string $table) Begin a fluent query against a database table. | |
* @method static void raw(mixed $value) Get a new raw query expression. | |
* @method static mixed selectOne(string $query, array $bindings) Run a select statement and return a single result. | |
* @method static array pretending(string $query, array $bindings) Run a select statement against the database. | |
* @method static bool insert(string $query, array $bindings) Run an insert statement against the database. | |
* @method static int update(string $query, array $bindings) Run an update statement against the database. | |
* @method static int delete(string $query, array $bindings) Run a delete statement against the database. | |
* @method static bool pretending(string $query, array $bindings) Execute an SQL statement and return the boolean result. | |
* @method static int pretending(string $query, array $bindings) Run an SQL statement and get the number of rows affected. | |
* @method static bool pretending(string $query) Run a raw, unprepared query against the PDO connection. | |
* @method static array prepareBindings(array $bindings) Prepare the query bindings for execution. | |
* @method static mixed transaction(Closure $callback) Execute a Closure within a transaction. | |
* @method static array pretend(Closure $callback) Execute the given callback in "dry run" mode. | |
* @method static void logQuery(string $query, array $bindings, $time) Log a query in the connection's query log. | |
* @method static void listen(Closure $callback) Register a database query listener with the connection. | |
* @method static void getDoctrineColumn(string $table, string $column) Get a Doctrine Schema Column instance. | |
* @method static void getDoctrineSchemaManager() Get the Doctrine DBAL schema manager for the connection. | |
* @method static void getDoctrineConnection() Get the Doctrine DBAL database connection instance. | |
* @method static PDO getPdo() Get the currently used PDO connection. | |
* @method static string getName() Get the database connection name. | |
* @method static mixed getConfig(string $option) Get an option from the configuration options. | |
* @method static string getDriverName() Get the PDO driver name. | |
* @method static void getQueryGrammar() Get the query grammar used by the connection. | |
* @method static void setQueryGrammar(\Illuminate\Database\Query\Grammars\Grammar) Set the query grammar used by the connection. | |
* @method static void getSchemaGrammar() Get the schema grammar used by the connection. | |
* @method static void setSchemaGrammar(\Illuminate\Database\Schema\Grammars\Grammar) Set the schema grammar used by the connection. | |
* @method static void getPostProcessor() Get the query post processor used by the connection. | |
* @method static void setPostProcessor(\Illuminate\Database\Query\Processors\Processor) Set the query post processor used by the connection. | |
* @method static void getEventDispatcher() Get the event dispatcher used by the connection. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance on the connection. | |
* @method static void getPaginator() Get the paginator environment instance. | |
* @method static void setPaginator(\Illuminate\Pagination\Environment|\Closure $paginator) Set the pagination environment instance. | |
* @method static void getCacheManager() Get the cache manager instance. | |
* @method static void setCacheManager(\Illuminate\Cache\CacheManager|\Closure $cache) Set the cache manager instance on the connection. | |
* @method static bool pretending() Determine if the connection in a "dry run". | |
* @method static int getFetchMode() Get the default fetch mode for the connection. | |
* @method static int setFetchMode(int $fetchMode) Set the default fetch mode for the connection. | |
* @method static array getQueryLog() Get the connection query log. | |
* @method static void flushQueryLog() Clear the query log. | |
* @method static void enableQueryLog() Enable the query log on the connection. | |
* @method static void disableQueryLog() Disable the query log on the connection. | |
* @method static string getDatabaseName() Get the name of the connected database. | |
* @method static string setDatabaseName(string $database) Set the name of the connected database. | |
* @method static string getTablePrefix() Get the table prefix for the connection. | |
* @method static void setTablePrefix(string $prefix) Set the table prefix in use by the connection. | |
* @method static void withTablePrefix(\Illuminate\Database\Grammar $grammar) Set the table prefix and return the grammar. | |
*/ | |
class DB extends Illuminate\Database\Connection {} | |
/** | |
* @var static void incrementing Indicates if the IDs are auto-incrementing. | |
* @var static void timestamps Indicates if the model should be timestamped. | |
* @var static void exists Indicates if the model exists. | |
* @var static void snakeAttributes Indicates whether attributes are snake cased on arrays. | |
* @var static void CREATED_AT The name of the "created at" column. | |
* @var static void UPDATED_AT The name of the "updated at" column. | |
* @var static void DELETED_AT The name of the "deleted at" column. | |
* @method static void observe(object $class) Register an observer with the Model. | |
* @method static void fill(array $attributes) Fill the model with an array of attributes. | |
* @method static void newInstance(array $attributes, bool $exists) Create a new instance of the given model. | |
* @method static void newFromBuilder(array $attributes) Create a new model instance that is existing. | |
* @method static void create(array $attributes) Save a new model and return the instance. | |
* @method static void query() Begin querying the model. | |
* @method static void on(string $connection) Begin querying the model on a given connection. | |
* @method static void all(array $columns) Get all of the models from the database. | |
* @method static void find(mixed $id, array $columns) Find a model by its primary key. | |
* @method static void findOrFail(mixed $id, array $columns) Find a model by its primary key or throw an exception. | |
* @method static void load(array|string $relations) Eager load relations on the model. | |
* @method static void with(array|string $relations) Being querying a model with eager loading. | |
* @method static void hasOne(string $related, string $foreignKey) Define a one-to-one relationship. | |
* @method static void morphOne(string $related, string $name, string $type, string $id) Define a polymorphic one-to-one relationship. | |
* @method static void belongsTo(string $related, string $foreignKey) Define an inverse one-to-one or many relationship. | |
* @method static void morphTo(string $name, string $type, string $id) Define an polymorphic, inverse one-to-one or many relationship. | |
* @method static void hasMany(string $related, string $foreignKey) Define a one-to-many relationship. | |
* @method static void morphMany(string $related, string $name, string $type, string $id) Define a polymorphic one-to-many relationship. | |
* @method static void belongsToMany(string $related, string $table, string $foreignKey, string $otherKey) Define a many-to-many relationship. | |
* @method static string joiningTable(string $related) Get the joining table name for a many-to-many relation. | |
* @method static void destroy(array|int $ids) Destroy the models for the given IDs. | |
* @method static bool delete() Delete the model from the database. | |
* @method static void forceDelete() Force a hard delete on a soft deleted model. | |
* @method static bool restore() Restore a soft-deleted model instance. | |
* @method static void saving(Closure|string $callback) Register a saving model event with the dispatcher. | |
* @method static void saved(Closure|string $callback) Register a saved model event with the dispatcher. | |
* @method static void updating(Closure|string $callback) Register an updating model event with the dispatcher. | |
* @method static void updated(Closure|string $callback) Register an updated model event with the dispatcher. | |
* @method static void creating(Closure|string $callback) Register a creating model event with the dispatcher. | |
* @method static void created(Closure|string $callback) Register a created model event with the dispatcher. | |
* @method static void deleting(Closure|string $callback) Register a deleting model event with the dispatcher. | |
* @method static void deleted(Closure|string $callback) Register a deleted model event with the dispatcher. | |
* @method static void flushEventListeners() Remove all of the event listeners for the model. | |
* @method static array getObservableEvents() Get the observable event names. | |
* @method static mixed update(array $attributes) Update the model in the database. | |
* @method static bool push() Save the model and all of its relationships. | |
* @method static bool save(array $options) Save the model to the database. | |
* @method static void touchOwners() Touch the owning relations of the model. | |
* @method static bool touches(string $relation) Determine if the model touches a given relation. | |
* @method static bool touch() Update the model's update timestamp. | |
* @method static void setCreatedAt(mixed $value) Set the value of the "created at" attribute. | |
* @method static void setUpdatedAt(mixed $value) Set the value of the "updated at" attribute. | |
* @method static string getCreatedAtColumn() Get the name of the "created at" column. | |
* @method static string getUpdatedAtColumn() Get the name of the "updated at" column. | |
* @method static string getDeletedAtColumn() Get the name of the "deleted at" column. | |
* @method static string getQualifiedDeletedAtColumn() Get the fully qualified "deleted at" column. | |
* @method static DateTime freshTimestamp() Get a fresh timestamp for the model. | |
* @method static void newQuery(bool $excludeDeleted) Get a new query builder for the model's table. | |
* @method static void newQueryWithDeleted() Get a new query builder that includes soft deletes. | |
* @method static bool trashed() Determine if the model instance has been soft-deleted. | |
* @method static void withTrashed() Get a new query builder that includes soft deletes. | |
* @method static void onlyTrashed() Get a new query builder that only includes soft deletes. | |
* @method static void newCollection(array $models) Create a new Eloquent Collection instance. | |
* @method static string getTable() Get the table associated with the model. | |
* @method static void setTable(string $table) Set the table associated with the model. | |
* @method static mixed getKey() Get the value of the model's primary key. | |
* @method static string getKeyName() Get the primary key for the model. | |
* @method static string getQualifiedKeyName() Get the table qualified key name. | |
* @method static bool usesTimestamps() Determine if the model uses timestamps. | |
* @method static bool isSoftDeleting() Determine if the model instance uses soft deletes. | |
* @method static void setSoftDeleting(bool $enabled) Set the soft deleting property on the model. | |
* @method static int getPerPage() Get the number of models to return per page. | |
* @method static void setPerPage(int $perPage) Set the number of models ot return per page. | |
* @method static string getForeignKey() Get the default foreign key name for the model. | |
* @method static array getHidden() Get the hidden attributes for the model. | |
* @method static void setHidden(array $hidden) Set the hidden attributes for the model. | |
* @method static void setVisible(array $visible) Set the visible attributes for the model. | |
* @method static array getFillable() Get the fillable attributes for the model. | |
* @method static void fillable(array $fillable) Set the fillable attributes for the model. | |
* @method static void guard(array $guarded) Set the guarded attributes for the model. | |
* @method static void unguard() Disable all mass assignable restrictions. | |
* @method static void reguard() Enable the mass assignment restrictions. | |
* @method static void setUnguardState(bool $state) Set "unguard" to a given state. | |
* @method static bool isFillable(string $key) Determine if the given attribute may be mass assigned. | |
* @method static bool isGuarded(string $key) Determine if the given key is guarded. | |
* @method static bool totallyGuarded() Determine if the model is totally guarded. | |
* @method static array getTouchedRelations() Get the relationships that are touched on save. | |
* @method static void setTouchedRelations(array $touches) Set the relationships that are touched on save. | |
* @method static bool getIncrementing() Get the value indicating whether the IDs are incrementing. | |
* @method static void setIncrementing(bool $value) Set whether IDs are incrementing. | |
* @method static string toJson(int $options) Convert the model instance to JSON. | |
* @method static array toArray() Convert the model instance to an array. | |
* @method static array attributesToArray() Convert the model's attributes to an array. | |
* @method static array relationsToArray() Get the model's relationships in array form. | |
* @method static mixed getAttribute(string $key) Get an attribute from the model. | |
* @method static bool hasGetMutator(string $key) Determine if a get mutator exists for an attribute. | |
* @method static void setAttribute(string $key, mixed $value) Set a given attribute on the model. | |
* @method static bool hasSetMutator(string $key) Determine if a set mutator exists for an attribute. | |
* @method static array getDates() Get the attributes that should be converted to dates. | |
* @method static void replicate() Clone the model into a new, non-existing instance. | |
* @method static array getAttributes() Get all of the current attributes on the model. | |
* @method static void setRawAttributes(array $attributes, bool $sync) Set the array of model attributes. No checking is done. | |
* @method static array getOriginal(string $key, mixed $default) Get the model's original attribute values. | |
* @method static void syncOriginal() Sync the original attributes with the current. | |
* @method static bool isDirty(string $attribute) Determine if a given attribute is dirty. | |
* @method static array getDirty() Get the attributes that have been changed since last sync. | |
* @method static array getRelations() Get all the loaded relations for the instance. | |
* @method static mixed getRelation(string $relation) Get a specified relationship. | |
* @method static void setRelation(string $relation, mixed $value) Set the specific relationship in the model. | |
* @method static void setRelations(array $relations) Set the entire relations array on the model. | |
* @method static void getConnection() Get the database connection for the model. | |
* @method static string getConnectionName() Get the current connection name for the model. | |
* @method static void setConnection(string $name) Set the connection associated with the model. | |
* @method static void resolveConnection(string $connection) Resolve a connection instance. | |
* @method static void getConnectionResolver() Get the connection resolver instance. | |
* @method static void setConnectionResolver(\Illuminate\Database\ConnectionResolverInterface $resolver) Set the connection resolver instance. | |
* @method static void getEventDispatcher() Get the event dispatcher instance. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher $dispatcher) Set the event dispatcher instance. | |
* @method static void unsetEventDispatcher() Unset the event dispatcher for models. | |
* @method static array getMutatedAttributes() Get the mutated attributes for a given instance. | |
* @method static bool offsetExists(mixed $offset) Determine if the given attribute exists. | |
* @method static mixed offsetGet(mixed $offset) Get the value for a given offset. | |
* @method static void offsetSet(mixed $offset, mixed $value) Set the value for a given offset. | |
* @method static void offsetUnset(mixed $offset) Unset the value for a given offset. | |
*/ | |
class Eloquent extends Illuminate\Database\Eloquent\Model {} | |
/** | |
* @method static bool hasTable(string $table) Determine if the given table exists. | |
* @method static bool hasColumn(string $table, string $column) Determine if the given table has a given column. | |
* @method static void table(string $table, Closure $callback) Modify a table on the schema. | |
* @method static void create(string $table, Closure $callback) Create a new table on the schema. | |
* @method static void drop(string $table) Drop a table from the schema. | |
* @method static void dropIfExists(string $table) Drop a table from the schema if it exists. | |
* @method static void rename(string $from, string $to) Rename a table on the schema. | |
* @method static void getConnection() Get the database connection instance. | |
* @method static void setConnection(\Illuminate\Database\Connection) Set the database connection instance. | |
*/ | |
class Schema extends Illuminate\Database\Schema\Builder {} | |
/** | |
* @method static string encrypt(string $value) Encrypt the given value. | |
* @method static string decrypt(string $payload) Decrypt the given value. | |
* @method static void setKey(string $key) Set the encryption key. | |
* @method static void setCipher(string $cipher) Set the encryption cipher. | |
* @method static void setMode(string $mode) Set the encryption mode. | |
*/ | |
class Crypt extends Illuminate\Encryption\Encrypter {} | |
/** | |
* @method static bool exists(string $path) Determine if a file exists. | |
* @method static string get(string $path) Get the contents of a file. | |
* @method static string getRemote(string $path) Get the contents of a remote file. | |
* @method static mixed getRequire(string $path) Get the returned value of a file. | |
* @method static void requireOnce(string $file) Require the given file once. | |
* @method static int put(string $path, string $contents) Write the contents of a file. | |
* @method static int append(string $path, string $data) Append to a file. | |
* @method static bool delete(string $path) Delete the file at a given path. | |
* @method static void move(string $path, string $target) Move a file to a new location. | |
* @method static void copy(string $path, string $target) Copy a file to a new location. | |
* @method static string extension(string $path) Extract the file extension from a file path. | |
* @method static string type(string $path) Get the file type of a given file. | |
* @method static int size(string $path) Get the file size of a given file. | |
* @method static int lastModified(string $path) Get the file's last modification time. | |
* @method static bool isDirectory(string $directory) Determine if the given path is a directory. | |
* @method static bool isWritable(string $path) Determine if the given path is writable. | |
* @method static bool isFile(string $file) Determine if the given path is a file. | |
* @method static array glob(string $pattern, int $flags) Find path names matching a given pattern. | |
* @method static array filetype(string $directory) Get an array of all files in a directory. | |
* @method static array allFiles(string $directory) Get all of the files from the given directory (recursive). | |
* @method static array directories(string $directory) Get all of the directories within a given directory. | |
* @method static bool makeDirectory(string $path, int $mode, bool $recursive) Create a directory. | |
* @method static void copyDirectory(string $directory, string $destination, int $options) Copy a directory from one location to another. | |
* @method static void deleteDirectory(string $directory, bool $preserve) Recursively delete a directory. | |
* @method static void cleanDirectory(string $directory) Empty the specified directory of all files and folders. | |
*/ | |
class File extends Illuminate\Filesystem\Filesystem {} | |
/** | |
* @var static void VERSION The Laravel framework version. | |
* @method static void setRequestForConsoleEnvironment() Set the application request for the console environment. | |
* @method static void redirectIfTrailingSlash() Redirect the request if it has a trailing slash. | |
* @method static void bindInstallPaths(array $paths) Bind the installation paths to the application. | |
* @method static string getBootstrapFile() Get the application bootstrap file. | |
* @method static void startExceptionHandling() Start the exception handling for the request. | |
* @method static string environment() Get the current application environment. | |
* @method static string detectEnvironment(array|string $environments) Detect the application's current environment. | |
* @method static bool runningInConsole() Determine if we are running in the console. | |
* @method static bool runningUnitTests() Determine if we are running unit tests. | |
* @method static void register(\Illuminate\Support\ServiceProvider|string $provider, array $options) Register a service provider with the application. | |
* @method static void loadDeferredProviders() Load and boot all of the remaining deferred providers. | |
* @method static mixed make(string $abstract, array $parameters) Resolve the given type from the container. | |
* @method static void before(Closure|string $callback) Register a "before" application filter. | |
* @method static void after(Closure|string $callback) Register an "after" application filter. | |
* @method static void close(Closure|string $callback) Register a "close" application filter. | |
* @method static void finish(Closure|string $callback) Register a "finish" application filter. | |
* @method static void shutdown(callable $callback) Register a "shutdown" callback. | |
* @method static void run() Handles the given request and delivers the response. | |
* @method static void dispatch(\Illuminate\Http\Request $request) Handle the given request and get the response. | |
* @method static void handle(\Illuminate\Http\Request $request, int $type, bool $catch) Handle the given request and get the response. | |
* @method static void boot() Boot the application's service providers. | |
* @method static void booting(mixed $callback) Register a new boot listener. | |
* @method static void booted(mixed $callback) Register a new "booted" listener. | |
* @method static void prepareRequest(\Illuminate\Http\Request $request) Prepare the request by injecting any services. | |
* @method static void prepareResponse(mixed $value) Prepare the given value as a Response object. | |
* @method static bool isDownForMaintenance() Determine if the application is currently down for maintenance. | |
* @method static void down(\Closure $callback) Register a maintenance mode event listener. | |
* @method static void abort(int $code, string $message, array $headers) Throw an HttpException with the given data. | |
* @method static void NotFoundHttpException(Closure $callback) Register a 404 error handler. | |
* @method static void error(\Closure $callback) Register an application error handler. | |
* @method static void pushError(\Closure $callback) Register an error handler at the bottom of the stack. | |
* @method static void FatalErrorException(Closure $callback) Register an error handler for fatal errors. | |
* @method static void getConfigLoader() Get the configuration loader instance. | |
* @method static void getProviderRepository() Get the service provider repository instance. | |
* @method static void setLocale(string $locale) Set the current application locale. | |
* @method static array getLoadedProviders() Get the service providers that have been loaded. | |
* @method static void setDeferredServices(array $services) Set the application's deferred services. | |
*/ | |
class App extends Illuminate\Foundation\Application {} | |
/** | |
* @method static void call(string $command, array $parameters, \Symfony\Component\Console\Output\OutputInterface $output) Run an Artisan console command by name. | |
*/ | |
class Artisan extends Illuminate\Foundation\Artisan {} | |
/** | |
* @method static string make(string $value, array $options) Hash the given value. | |
* @method static bool check(string $value, string $hashedValue, array $options) Check the given plain value against a hash. | |
* @method static bool needsRehash(string $hashedValue, array $options) Check if the given hash has been hashed using the given options. | |
*/ | |
class Hash extends Illuminate\Hashing\BcryptHasher {} | |
/** | |
* @method static void instance() Return the Request instance. | |
* @method static string root() Get the root URL for the application. | |
* @method static string url() Get the URL (no query string) for the request. | |
* @method static string fullUrl() Get the full URL for the request. | |
* @method static string path() Get the current path info for the request. | |
* @method static string array_get(string $index, mixed $default) Get a segment from the URI (1 based index). | |
* @method static array segments() Get all of the segments for the request path. | |
* @method static bool is(string $pattern) Determine if the current request URI matches a pattern. | |
* @method static bool ajax() Determine if the request is the result of an AJAX call. | |
* @method static bool secure() Determine if the request is over HTTPS. | |
* @method static bool has(string|array $key) Determine if the request contains a given input item. | |
* @method static array all() Get all of the input and files for the request. | |
* @method static string input(string $key, mixed $default) Retrieve an input item from the request. | |
* @method static array only(array $keys) Get a subset of the items from the input data. | |
* @method static array except(array $keys) Get all of the input except for a specified array of items. | |
* @method static string query(string $key, mixed $default) Retrieve a query string item from the request. | |
* @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. | |
* @method static void file(string $key, mixed $default) Retrieve a file from the request. | |
* @method static bool hasFile(string $key) Determine if the uploaded data contains a file. | |
* @method static string header(string $key, mixed $default) Retrieve a header from the request. | |
* @method static string server(string $key, mixed $default) Retrieve a server variable from the request. | |
* @method static mixed old(string $key, mixed $default) Retrieve an old input item. | |
* @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. | |
* @method static void flashOnly(dynamic string) Flash only some of the input to the session. | |
* @method static void flashExcept(dynamic string) Flash only some of the input to the session. | |
* @method static void flush() Flush all of the old input from the session. | |
* @method static void merge(array $input) Merge new input into the current request's input array. | |
* @method static void replace(array $input) Replace the input for the current request. | |
* @method static mixed json(string $key, mixed $default) Get the JSON payload for the request. | |
* @method static bool isJson() Determine if the request is sending JSON. | |
* @method static bool wantsJson() Determine if the current request is asking for JSON in return. | |
* @method static void getSessionStore() Get the Illuminate session store implementation. | |
* @method static void setSessionStore(\Illuminate\Session\Store $session) Set the Illuminate session store implementation. | |
* @method static bool hasSessionStore() Determine if the session store has been set. | |
*/ | |
class Input extends Illuminate\Http\Request {} | |
/** | |
* @method static void instance() Return the Request instance. | |
* @method static string root() Get the root URL for the application. | |
* @method static string url() Get the URL (no query string) for the request. | |
* @method static string fullUrl() Get the full URL for the request. | |
* @method static string path() Get the current path info for the request. | |
* @method static string array_get(string $index, mixed $default) Get a segment from the URI (1 based index). | |
* @method static array segments() Get all of the segments for the request path. | |
* @method static bool is(string $pattern) Determine if the current request URI matches a pattern. | |
* @method static bool ajax() Determine if the request is the result of an AJAX call. | |
* @method static bool secure() Determine if the request is over HTTPS. | |
* @method static bool has(string|array $key) Determine if the request contains a given input item. | |
* @method static array all() Get all of the input and files for the request. | |
* @method static string input(string $key, mixed $default) Retrieve an input item from the request. | |
* @method static array only(array $keys) Get a subset of the items from the input data. | |
* @method static array except(array $keys) Get all of the input except for a specified array of items. | |
* @method static string query(string $key, mixed $default) Retrieve a query string item from the request. | |
* @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. | |
* @method static void file(string $key, mixed $default) Retrieve a file from the request. | |
* @method static bool hasFile(string $key) Determine if the uploaded data contains a file. | |
* @method static string header(string $key, mixed $default) Retrieve a header from the request. | |
* @method static string server(string $key, mixed $default) Retrieve a server variable from the request. | |
* @method static mixed old(string $key, mixed $default) Retrieve an old input item. | |
* @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. | |
* @method static void flashOnly(dynamic string) Flash only some of the input to the session. | |
* @method static void flashExcept(dynamic string) Flash only some of the input to the session. | |
* @method static void flush() Flush all of the old input from the session. | |
* @method static void merge(array $input) Merge new input into the current request's input array. | |
* @method static void replace(array $input) Replace the input for the current request. | |
* @method static mixed json(string $key, mixed $default) Get the JSON payload for the request. | |
* @method static bool isJson() Determine if the request is sending JSON. | |
* @method static bool wantsJson() Determine if the current request is asking for JSON in return. | |
* @method static void getSessionStore() Get the Illuminate session store implementation. | |
* @method static void setSessionStore(\Illuminate\Session\Store $session) Set the Illuminate session store implementation. | |
* @method static bool hasSessionStore() Determine if the session store has been set. | |
*/ | |
class Request extends Illuminate\Http\Request {} | |
/** | |
* @var static void original The original content of the response. | |
* @method static void header(string $key, string $value, bool $replace) Set a header on the Response. | |
* @method static void withCookie(\Symfony\Component\HttpFoundation\Cookie $cookie) Add a cookie to the response. | |
* @method static void setContent(mixed $content) Set the content on the response. | |
* @method static mixed getOriginalContent() Get the original response content. | |
*/ | |
class Response extends Illuminate\Http\Response {} | |
/** | |
* @method static void useFiles(string $path, string $level) Register a file log handler. | |
* @method static void useDailyFiles(string $path, int $days, string $level) Register a daily file log handler. | |
* @method static void getMonolog() Get the underlying Monolog instance. | |
* @method static void listen(Closure $callback) Register a new callback handler for when | |
* @method static void getEventDispatcher() Get the event dispatcher instance. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance. | |
*/ | |
class Log extends Illuminate\Log\Writer {} | |
/** | |
* @method static void alwaysFrom(string $address, string $name) Set the global from address and name. | |
* @method static void plain(string $view, array $data, mixed $callback) Send a new message when only a plain part. | |
* @method static void send(string|array $view, array $data, Closure|string $callback) Send a new message using a view. | |
* @method static void queue(string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending. | |
* @method static void queueOn(string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending on the given queue. | |
* @method static void later(int $delay, string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending after (n) seconds. | |
* @method static void laterOn(string $queue, int $delay, string|array $view, array $data, Closure|string $callback) Queue a new e-mail message for sending after (n) seconds on the given queue. | |
* @method static void handleQueuedMessage(\Illuminate\Queue\Jobs\Job $job, array $data) Handle a queued e-mail message job. | |
* @method static void pretend(bool $value) Tell the mailer to not really send messages. | |
* @method static void getViewEnvironment() Get the view environment instance. | |
* @method static Swift_Mailer getSwiftMailer() Get the Swift Mailer instance. | |
* @method static void setSwiftMailer(Swift_Mailer $swift) Set the Swift Mailer instance. | |
* @method static void setLogger(\Illuminate\Log\Writer $logger) Set the log writer instance. | |
* @method static void setQueue(\Illuminate\Queue\QueueManager $queue) Set the queue manager instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
*/ | |
class Mail extends Illuminate\Mail\Mailer {} | |
/** | |
* @method static void setupPaginationContext() Setup the pagination context (current and last page). | |
* @method static void links() Get the pagination links view. | |
* @method static string getUrl(int $page) Get a URL for a given page number. | |
* @method static void appends(string $key, string $value) Add a query string value to the paginator. | |
* @method static void addQuery(string $key, string $value) Add a query string value to the paginator. | |
* @method static int getCurrentPage() Get the current page for the request. | |
* @method static int getLastPage() Get the last page that should be available. | |
* @method static int getFrom() Get the number of the first item on the paginator. | |
* @method static int getTo() Get the number of the last item on the paginator. | |
* @method static int getPerPage() Get the number of items to be displayed per page. | |
* @method static void getCollection() Get a collection instance containing the items. | |
* @method static array getItems() Get the items being paginated. | |
* @method static void setItems(mixed $items) Set the items being paginated. | |
* @method static int getTotal() Get the total number of items in the collection. | |
* @method static void setBaseUrl(string $baseUrl) Set the base URL in use by the paginator. | |
* @method static void getEnvironment() Get the pagination environment. | |
* @method static ArrayIterator getIterator() Get an iterator for the items. | |
* @method static bool isEmpty() Determine if the list of items is empty or not. | |
* @method static int count() Get the number of items for the current page. | |
* @method static bool offsetExists(mixed $key) Determine if the given item exists. | |
* @method static mixed offsetGet(mixed $key) Get the item at the given offset. | |
* @method static void offsetSet(mixed $key, mixed $value) Set the item at the given offset. | |
* @method static void offsetUnset(mixed $key) Unset the item at the given key. | |
*/ | |
class Paginator extends Illuminate\Pagination\Paginator {} | |
/** | |
* @method static void connection(string $name) Get a specific Redis connection instance. | |
* @method static mixed command(string $method, array $parameters) Run a command against the Redis database. | |
*/ | |
class Redis extends Illuminate\Redis\Database {} | |
/** | |
* @method static void home(int $status) Create a new redirect response to the "home" route. | |
* @method static void back(int $status, array $headers) Create a new redirect response to the previous location. | |
* @method static void refresh(int $status, array $headers) Create a new redirect response to the current URI. | |
* @method static void guest(string $path, int $status, array $headers, bool $secure) Create a new redirect response, while putting the current URL in the session. | |
* @method static void intended(string $default, int $status, array $headers, bool $secure) Create a new redirect response to the previously intended location. | |
* @method static void to(string $path, int $status, array $headers, bool $secure) Create a new redirect response to the given path. | |
* @method static void secure(string $path, int $status, array $headers) Create a new redirect response to the given HTTPS path. | |
* @method static void route(string $route, array $parameters, int $status, array $headers) Create a new redirect response to a named route. | |
* @method static void action(string $action, array $parameters, int $status, array $headers) Create a new redirect response to a controller action. | |
* @method static void getUrlGenerator() Get the URL generator instance. | |
* @method static void setSession(\Illuminate\Session\Store $session) Set the active session store. | |
*/ | |
class Redirect extends Illuminate\Routing\Redirector {} | |
/** | |
* @method static void explode(\Illuminate\Container\Container $container) Create a new router instance. | |
* @method static void get(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void post(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void put(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void patch(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void delete(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void options(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void match(string $method, string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void any(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void controllers(array $controllers) Register an array of controllers with wildcard routing. | |
* @method static void controller(string $uri, string $controller, array $names) Route a controller to a URI with wildcard routing. | |
* @method static void resource(string $resource, string $controller, array $options) Route a resource to a controller. | |
* @method static string getResourceUri(string $resource) Get the base resource URI for a given resource. | |
* @method static string getResourceWildcard(string $value) Format a resource wildcard parameter. | |
* @method static void group(array $attributes, Closure $callback) Create a route group with shared attributes. | |
* @method static void dispatch(\Symfony\Component\HttpFoundation\Request $request) Get the response for a given request. | |
* @method static void before(Closure|string $callback) Register a "before" routing filter. | |
* @method static void after(Closure|string $callback) Register an "after" routing filter. | |
* @method static void close(Closure|string $callback) Register a "close" routing filter. | |
* @method static void finish(Closure|string $callback) Register a "finish" routing filters. | |
* @method static void filter(string $name, Closure|string $callback) Register a new filter with the application. | |
* @method static Closure getFilter(string $name) Get a registered filter callback. | |
* @method static void when(string $pattern, string|array $names, array|null $methods) Tie a registered filter to a URI pattern. | |
* @method static array findPatternFilters(\Illuminate\Http\Request $request) Find the patterned filters matching a request. | |
* @method static mixed callFinishFilter(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\HttpFoundation\Response $response) Call the finish" global filter. | |
* @method static mixed callCloseFilter(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\HttpFoundation\Response $response) Call the "close" global filter. | |
* @method static void pattern(string $key, string $pattern) Set a global where pattern on all routes | |
* @method static void is_null(string $key, string $class) Register a model binder for a wildcard. | |
* @method static void bind(string $key, mixed $binder) Register a custom parameter binder. | |
* @method static bool hasBinder(string $key) Determine if a given key has a registered binder. | |
* @method static mixed performBinding(string $key, mixed $value, \Illuminate\Routing\Route $route) Call a binder for a given wildcard. | |
* @method static void prepare(mixed $value, \Illuminate\Http\Request $request) Prepare the given value as a Response object. | |
* @method static string currentRouteName() Get the current route name. | |
* @method static bool currentRouteNamed(string $name) Determine if the current route has a given name. | |
* @method static string currentRouteAction() Get the current route action. | |
* @method static bool currentRouteUses(string $action) Determine if the current route uses a given controller action. | |
* @method static bool filtersEnabled() Determine if route filters are enabled. | |
* @method static void enableFilters() Enable the running of filters. | |
* @method static void disableFilters() Disable the running of all filters. | |
* @method static void getRoutes() Retrieve the entire route collection. | |
* @method static void getRequest() Get the current request being dispatched. | |
* @method static void getCurrentRoute() Get the current route being executed. | |
* @method static void setCurrentRoute(\Illuminate\Routing\Route $route) Set the current route on the router. | |
* @method static array getFilters() Get the filters defined on the router. | |
* @method static array getGlobalFilters() Get the global filters defined on the router. | |
* @method static void getInspector() Get the controller inspector instance. | |
* @method static void setInspector(\Illuminate\Routing\Controllers\Inspector $inspector) Set the controller inspector instance. | |
* @method static void getContainer() Get the container used by the router. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the container instance on the router. | |
*/ | |
class Route extends Illuminate\Routing\Router {} | |
/** | |
* @method static string full() Get the full URL for the current request. | |
* @method static string current() Get the current URL for the request. | |
* @method static string previous() Get the URL for the previous request. | |
* @method static string to(string $path, mixed $parameters, bool $secure) Generate a absolute URL to the given path. | |
* @method static string secure(string $path, array $parameters) Generate a secure, absolute URL to the given path. | |
* @method static string asset(string $path, bool $secure) Generate a URL to an application asset. | |
* @method static string secureAsset(string $path) Generate a URL to a secure asset. | |
* @method static string route(string $name, mixed $parameters, bool $absolute) Get the URL to a named route. | |
* @method static string action(string $action, mixed $parameters, bool $absolute) Get the URL to a controller action. | |
* @method static bool isValidUrl(string $path) Determine if the given path is a valid URL. | |
* @method static void getRequest() Get the request instance. | |
* @method static void setRequest(\Symfony\Component\HttpFoundation\Request $request) Set the current request instance. | |
* @method static void getGenerator() Get the Symfony URL generator instance. | |
* @method static void setGenerator(\Symfony\Component\Routing\Generator\UrlGenerator $generator) Set the Symfony URL generator instance. | |
*/ | |
class URL extends Illuminate\Routing\UrlGenerator {} | |
/** | |
* @method static void beforeFilter(string $filter, array $options) Register a new "before" filter on the controller. | |
* @method static void afterFilter(string $filter, array $options) Register a new "after" filter on the controller. | |
* @method static void callAction(\Illuminate\Container\Container $container, \Illuminate\Routing\Router $router, string $method, array $parameters) Execute an action on the controller. | |
* @method static array getControllerFilters() Get the code registered filters. | |
* @method static mixed missingMethod(array $parameters) Handle calls to missing methods on the controller. | |
*/ | |
class Controller extends Illuminate\Routing\Controllers\Controller {} | |
/** | |
* @method static bool has(string $key, string $locale) Determine if a translation exists. | |
* @method static string get(string $key, array $replace, string $locale) Get the translation for the given key. | |
* @method static string choice(string $key, int $number, array $replace, string $locale) Get a translation according to an integer value. | |
* @method static string trans(string $id, array $parameters, string $domain, string $locale) Get the translation for a given key. | |
* @method static string transChoice(string $id, int $number, array $parameters, string $domain, string $locale) Get a translation according to an integer value. | |
* @method static void load(string $namespace, string $group, string $locale) Load the specified language group. | |
* @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. | |
* @method static array parseKey(string $key) Parse a key into namespace, group, and item. | |
* @method static void getSelector() Get the message selector instance. | |
* @method static void setSelector(\Symfony\Component\Translation\MessageSelector $selector) Set the message selector instance. | |
* @method static void getLoader() Get the language line loader implementation. | |
* @method static string locale() Get the default locale being used. | |
* @method static string getLocale() Get the default locale being used. | |
* @method static void setLocale(string $locale) Set the default locale. | |
*/ | |
class Lang extends Illuminate\Translation\Translator {} | |
/** | |
* @method static bool passes() Determine if the data passes the validation rules. | |
* @method static bool fails() Determine if the data fails the validation rules. | |
* @method static array getExtensions() Get the array of custom validator extensions. | |
* @method static void addExtensions(array $extensions) Register an array of custom validator extensions. | |
* @method static void addImplicitExtensions(array $extensions) Register an array of custom implicit validator extensions. | |
* @method static void addExtension(string $rule, Closure|string $extension) Register a custom validator extension. | |
* @method static void addImplicitExtension(string $rule, Closure $extension) Register a custom implicit validator extension. | |
* @method static array getData() Get the data under validation. | |
* @method static void setData(array $data) Set the data under validation. | |
* @method static array getRules() Get the validation rules. | |
* @method static void setAttributeNames(array $attributes) Set the custom attributes on the validator. | |
* @method static array getFiles() Get the files under validation. | |
* @method static void setFiles(array $files) Set the files under validation. | |
* @method static void getPresenceVerifier() Get the Presence Verifier implementation. | |
* @method static void setPresenceVerifier(\Illuminate\Validation\PresenceVerifierInterface $presenceVerifier) Set the Presence Verifier implementation. | |
* @method static void getTranslator() Get the Translator implementation. | |
* @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator) Set the Translator implementation. | |
* @method static array getCustomMessages() Get the custom messages for the validator | |
* @method static void setCustomMessages(array $messages) Set the custom messages for the validator | |
* @method static array failed() Get the failed validation rules. | |
* @method static void messages() Get the message container for the validator. | |
* @method static void errors() An alternative more semantic shortcut to the message container. | |
* @method static void getMessageBag() Get the messages for the instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
*/ | |
class Validator extends Illuminate\Validation\Factory {} | |
/** | |
* @method static void make(string $view, array $data, array $mergeData) Get a evaluated view contents for the given view. | |
* @method static void of(string $view, mixed $data) Get a evaluated view contents for a named view. | |
* @method static void name(string $view, string $name) Register a named view. | |
* @method static bool exists(string $view) Determine if a given view exists. | |
* @method static string renderEach(string $view, array $data, string $iterator, string $empty) Get the rendered contents of a partial from a loop. | |
* @method static void share(string $key, mixed $value) Add a piece of shared data to the environment. | |
* @method static Closure composer(array|string $views, Closure|string $callback) Register a view composer event. | |
* @method static void callComposer(\Illuminate\View\View $view) Call the composer for a given view. | |
* @method static void startSection(string $section, string $content) Start injecting content into a section. | |
* @method static void inject(string $section, string $content) Inject inline content into a section. | |
* @method static string yieldSection() Stop injecting content into a section and return its contents. | |
* @method static string stopSection(bool $overwrite) Stop injecting content into a section. | |
* @method static string yieldContent(string $section, string $default) Get the string contents of a section. | |
* @method static void flushSections() Flush all of the section contents. | |
* @method static void incrementRender() Increment the rendering counter. | |
* @method static void decrementRender() Decrement the rendering counter. | |
* @method static bool doneRendering() Check if there are no active render operations. | |
* @method static void addLocation(string $location) Add a location to the array of view locations. | |
* @method static void addNamespace(string $namespace, string|array $hints) Add a new namespace to the loader. | |
* @method static void addExtension(string $extension, string $engine, Closure $resolver) Register a valid view extension and its engine. | |
* @method static array getExtensions() Get the extension to engine bindings. | |
* @method static void getEngineResolver() Get the engine resolver instance. | |
* @method static void getFinder() Get the view finder instance. | |
* @method static void getDispatcher() Get the event dispatcher instance. | |
* @method static void getContainer() Get the IoC container instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
* @method static array getShared() Get all of the shared data for the environment. | |
* @method static array getSections() Get the entire array of sections. | |
* @method static array getNames() Get all of the registered named views in environment. | |
*/ | |
class View extends Illuminate\View\Environment {} | |
/** | |
* @method static bool check() Determine if the current user is authenticated. | |
* @method static bool guest() Determine if the current user is a guest. | |
* @method static void user() Get the currently authenticated user. | |
* @method static bool once(array $credentials) Log a user into the application without sessions or cookies. | |
* @method static bool validate(array $credentials) Validate a user's credentials. | |
* @method static void basic(string $field, \Symfony\Component\HttpFoundation\Request $request) Attempt to authenticate using HTTP Basic Auth. | |
* @method static void onceBasic(string $field, \Symfony\Component\HttpFoundation\Request $request) Perform a stateless HTTP Basic login attempt. | |
* @method static bool attempt(array $credentials, bool $remember, bool $login) Attempt to authenticate a user using the given credentials. | |
* @method static void attempting(mixed $callback) Register an authentication attempt event listener. | |
* @method static void login(\Illuminate\Auth\UserInterface $user, bool $remember) Log a user into the application. | |
* @method static void loginUsingId(mixed $id, bool $remember) Log the given user ID into the application. | |
* @method static void logout() Log the user out of the application. | |
* @method static array getQueuedCookies() Get the cookies queued by the guard. | |
* @method static void getCookieJar() Get the cookie creator instance used by the guard. | |
* @method static void setCookieJar(\Illuminate\Cookie\CookieJar $cookie) Set the cookie creator instance used by the guard. | |
* @method static void getDispatcher() Get the event dispatcher instance. | |
* @method static void setDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance. | |
* @method static void getSession() Get the session store used by the guard. | |
* @method static void getProvider() Get the user provider used by the guard. | |
* @method static void getUser() Return the currently cached user of the application. | |
* @method static void setUser(\Illuminate\Auth\UserInterface $user) Set the current user of the application. | |
* @method static void getRequest() Get the current request instance. | |
* @method static void setRequest(\Symfony\Component\HttpFoundation\Request) Set the current request instance. | |
* @method static string getName() Get a unique identifier for the auth session value. | |
* @method static string getRecallerName() Get the name of the cookie used to store the "recaller". | |
*/ | |
class Auth extends Illuminate\Auth\Guard {} | |
/** | |
* @method static bool has(string $key) Determine if the given configuration value exists. | |
* @method static bool hasGroup(string $key) Determine if a configuration group exists. | |
* @method static mixed get(string $key, mixed $default) Get the specified configuration value. | |
* @method static void set(string $key, mixed $value) Set a given configuration value. | |
* @method static void getEnvironment(string $package, string $hint, string $namespace) Register a package for cascading configuration. | |
* @method static void afterLoading(string $namespace, Closure $callback) Register an after load callback for a given namespace. | |
* @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. | |
* @method static array getNamespaces() Returns all registered namespaces with the config | |
* @method static void getLoader() Get the loader implementation. | |
* @method static void setLoader(\Illuminate\Config\LoaderInterface $loader) Set the loader implementation. | |
* @method static string getEnvironment() Get the current configuration environment. | |
* @method static array getAfterLoadCallbacks() Get the after load callback array. | |
* @method static array getItems() Get all of the configuration items. | |
* @method static bool offsetExists(string $key) Determine if the given configuration option exists. | |
* @method static bool offsetGet(string $key) Get a configuration option. | |
* @method static void offsetSet(string $key, string $value) Set a configuration option. | |
* @method static void offsetUnset(string $key) Unset a configuration option. | |
*/ | |
class Config extends Illuminate\Config\Repository {} | |
/** | |
* @method static bool has(string $key) Determine if a cookie exists and is not null. | |
* @method static mixed get(string $key, mixed $default) Get the value of the given cookie. | |
* @method static void make(string $name, string $value, int $minutes, string $path, string $domain, bool $secure, bool $httpOnly) Create a new cookie instance. | |
* @method static void forever(string $name, string $value, string $path, string $domain, bool $secure, bool $httpOnly) Create a cookie that lasts "forever" (five years). | |
* @method static void forget(string $name) Expire the given cookie. | |
* @method static void setDefaultPathAndDomain(string $path, string $domain) Set the default path and domain for the jar. | |
* @method static void getRequest() Get the request instance. | |
* @method static void getEncrypter() Get the encrypter instance. | |
*/ | |
class Cookie extends Illuminate\Cookie\CookieJar {} | |
/** | |
* @method static void useDefaultQueryGrammar() Set the query grammar to the default implementation. | |
* @method static void useDefaultSchemaGrammar() Set the schema grammar to the default implementation. | |
* @method static void useDefaultPostProcessor() Set the query post processor to the default implementation. | |
* @method static void getSchemaBuilder() Get a schema builder instance for the connection. | |
* @method static void table(string $table) Begin a fluent query against a database table. | |
* @method static void raw(mixed $value) Get a new raw query expression. | |
* @method static mixed selectOne(string $query, array $bindings) Run a select statement and return a single result. | |
* @method static array pretending(string $query, array $bindings) Run a select statement against the database. | |
* @method static bool insert(string $query, array $bindings) Run an insert statement against the database. | |
* @method static int update(string $query, array $bindings) Run an update statement against the database. | |
* @method static int delete(string $query, array $bindings) Run a delete statement against the database. | |
* @method static bool pretending(string $query, array $bindings) Execute an SQL statement and return the boolean result. | |
* @method static int pretending(string $query, array $bindings) Run an SQL statement and get the number of rows affected. | |
* @method static bool pretending(string $query) Run a raw, unprepared query against the PDO connection. | |
* @method static array prepareBindings(array $bindings) Prepare the query bindings for execution. | |
* @method static mixed transaction(Closure $callback) Execute a Closure within a transaction. | |
* @method static array pretend(Closure $callback) Execute the given callback in "dry run" mode. | |
* @method static void logQuery(string $query, array $bindings, $time) Log a query in the connection's query log. | |
* @method static void listen(Closure $callback) Register a database query listener with the connection. | |
* @method static void getDoctrineColumn(string $table, string $column) Get a Doctrine Schema Column instance. | |
* @method static void getDoctrineSchemaManager() Get the Doctrine DBAL schema manager for the connection. | |
* @method static void getDoctrineConnection() Get the Doctrine DBAL database connection instance. | |
* @method static PDO getPdo() Get the currently used PDO connection. | |
* @method static string getName() Get the database connection name. | |
* @method static mixed getConfig(string $option) Get an option from the configuration options. | |
* @method static string getDriverName() Get the PDO driver name. | |
* @method static void getQueryGrammar() Get the query grammar used by the connection. | |
* @method static void setQueryGrammar(\Illuminate\Database\Query\Grammars\Grammar) Set the query grammar used by the connection. | |
* @method static void getSchemaGrammar() Get the schema grammar used by the connection. | |
* @method static void setSchemaGrammar(\Illuminate\Database\Schema\Grammars\Grammar) Set the schema grammar used by the connection. | |
* @method static void getPostProcessor() Get the query post processor used by the connection. | |
* @method static void setPostProcessor(\Illuminate\Database\Query\Processors\Processor) Set the query post processor used by the connection. | |
* @method static void getEventDispatcher() Get the event dispatcher used by the connection. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance on the connection. | |
* @method static void getPaginator() Get the paginator environment instance. | |
* @method static void setPaginator(\Illuminate\Pagination\Environment|\Closure $paginator) Set the pagination environment instance. | |
* @method static void getCacheManager() Get the cache manager instance. | |
* @method static void setCacheManager(\Illuminate\Cache\CacheManager|\Closure $cache) Set the cache manager instance on the connection. | |
* @method static bool pretending() Determine if the connection in a "dry run". | |
* @method static int getFetchMode() Get the default fetch mode for the connection. | |
* @method static int setFetchMode(int $fetchMode) Set the default fetch mode for the connection. | |
* @method static array getQueryLog() Get the connection query log. | |
* @method static void flushQueryLog() Clear the query log. | |
* @method static void enableQueryLog() Enable the query log on the connection. | |
* @method static void disableQueryLog() Disable the query log on the connection. | |
* @method static string getDatabaseName() Get the name of the connected database. | |
* @method static string setDatabaseName(string $database) Set the name of the connected database. | |
* @method static string getTablePrefix() Get the table prefix for the connection. | |
* @method static void setTablePrefix(string $prefix) Set the table prefix in use by the connection. | |
* @method static void withTablePrefix(\Illuminate\Database\Grammar $grammar) Set the table prefix and return the grammar. | |
*/ | |
class DB extends Illuminate\Database\Connection {} | |
/** | |
* @var static void incrementing Indicates if the IDs are auto-incrementing. | |
* @var static void timestamps Indicates if the model should be timestamped. | |
* @var static void exists Indicates if the model exists. | |
* @var static void snakeAttributes Indicates whether attributes are snake cased on arrays. | |
* @var static void CREATED_AT The name of the "created at" column. | |
* @var static void UPDATED_AT The name of the "updated at" column. | |
* @var static void DELETED_AT The name of the "deleted at" column. | |
* @method static void observe(object $class) Register an observer with the Model. | |
* @method static void fill(array $attributes) Fill the model with an array of attributes. | |
* @method static void newInstance(array $attributes, bool $exists) Create a new instance of the given model. | |
* @method static void newFromBuilder(array $attributes) Create a new model instance that is existing. | |
* @method static void create(array $attributes) Save a new model and return the instance. | |
* @method static void on(string $connection) Begin querying the model on a given connection. | |
* @method static void all(array $columns) Get all of the models from the database. | |
* @method static void find(mixed $id, array $columns) Find a model by its primary key. | |
* @method static void findOrFail(mixed $id, array $columns) Find a model by its primary key or throw an exception. | |
* @method static void load(array|string $relations) Eager load relations on the model. | |
* @method static void with(array|string $relations) Being querying a model with eager loading. | |
* @method static void hasOne(string $related, string $foreignKey) Define a one-to-one relationship. | |
* @method static void morphOne(string $related, string $name, string $type, string $id) Define a polymorphic one-to-one relationship. | |
* @method static void belongsTo(string $related, string $foreignKey) Define an inverse one-to-one or many relationship. | |
* @method static void morphTo(string $name, string $type, string $id) Define an polymorphic, inverse one-to-one or many relationship. | |
* @method static void hasMany(string $related, string $foreignKey) Define a one-to-many relationship. | |
* @method static void morphMany(string $related, string $name, string $type, string $id) Define a polymorphic one-to-many relationship. | |
* @method static void belongsToMany(string $related, string $table, string $foreignKey, string $otherKey) Define a many-to-many relationship. | |
* @method static string joiningTable(string $related) Get the joining table name for a many-to-many relation. | |
* @method static void destroy(array|int $ids) Destroy the models for the given IDs. | |
* @method static void delete() Delete the model from the database. | |
* @method static void forceDelete() Force a hard delete on a soft deleted model. | |
* @method static void restore() Restore a soft-deleted model instance. | |
* @method static void saving(Closure|string $callback) Register a saving model event with the dispatcher. | |
* @method static void saved(Closure|string $callback) Register a saved model event with the dispatcher. | |
* @method static void updating(Closure|string $callback) Register an updating model event with the dispatcher. | |
* @method static void updated(Closure|string $callback) Register an updated model event with the dispatcher. | |
* @method static void creating(Closure|string $callback) Register a creating model event with the dispatcher. | |
* @method static void created(Closure|string $callback) Register a created model event with the dispatcher. | |
* @method static void deleting(Closure|string $callback) Register a deleting model event with the dispatcher. | |
* @method static void deleted(Closure|string $callback) Register a deleted model event with the dispatcher. | |
* @method static void flushEventListeners() Remove all of the event listeners for the model. | |
* @method static array getObservableEvents() Get the observable event names. | |
* @method static mixed update(array $attributes) Update the model in the database. | |
* @method static bool push() Save the model and all of its relationships. | |
* @method static bool save(array $options) Save the model to the database. | |
* @method static void touchOwners() Touch the owning relations of the model. | |
* @method static bool touches(string $relation) Determine if the model touches a given relation. | |
* @method static bool touch() Update the model's update timestamp. | |
* @method static void setCreatedAt(mixed $value) Set the value of the "created at" attribute. | |
* @method static void setUpdatedAt(mixed $value) Set the value of the "updated at" attribute. | |
* @method static string getCreatedAtColumn() Get the name of the "created at" column. | |
* @method static string getUpdatedAtColumn() Get the name of the "updated at" column. | |
* @method static string getDeletedAtColumn() Get the name of the "deleted at" column. | |
* @method static string getQualifiedDeletedAtColumn() Get the fully qualified "deleted at" column. | |
* @method static mixed freshTimestamp() Get a fresh timestamp for the model. | |
* @method static void newQuery(bool $excludeDeleted) Get a new query builder for the model's table. | |
* @method static void newQueryWithDeleted() Get a new query builder that includes soft deletes. | |
* @method static bool trashed() Determine if the model instance has been soft-deleted. | |
* @method static void withTrashed() Get a new query builder that includes soft deletes. | |
* @method static void onlyTrashed() Get a new query builder that only includes soft deletes. | |
* @method static void newCollection(array $models) Create a new Eloquent Collection instance. | |
* @method static string getTable() Get the table associated with the model. | |
* @method static void setTable(string $table) Set the table associated with the model. | |
* @method static mixed getKey() Get the value of the model's primary key. | |
* @method static string getKeyName() Get the primary key for the model. | |
* @method static string getQualifiedKeyName() Get the table qualified key name. | |
* @method static bool usesTimestamps() Determine if the model uses timestamps. | |
* @method static bool isSoftDeleting() Determine if the model instance uses soft deletes. | |
* @method static void setSoftDeleting(bool $enabled) Set the soft deleting property on the model. | |
* @method static int getPerPage() Get the number of models to return per page. | |
* @method static void setPerPage(int $perPage) Set the number of models ot return per page. | |
* @method static string getForeignKey() Get the default foreign key name for the model. | |
* @method static array getHidden() Get the hidden attributes for the model. | |
* @method static void setHidden(array $hidden) Set the hidden attributes for the model. | |
* @method static void setVisible(array $visible) Set the visible attributes for the model. | |
* @method static array getFillable() Get the fillable attributes for the model. | |
* @method static void fillable(array $fillable) Set the fillable attributes for the model. | |
* @method static void guard(array $guarded) Set the guarded attributes for the model. | |
* @method static void unguard() Disable all mass assignable restrictions. | |
* @method static void reguard() Enable the mass assignment restrictions. | |
* @method static void setUnguardState(bool $state) Set "unguard" to a given state. | |
* @method static bool isFillable(string $key) Determine if the given attribute may be mass assigned. | |
* @method static bool isGuarded(string $key) Determine if the given key is guarded. | |
* @method static bool totallyGuarded() Determine if the model is totally guarded. | |
* @method static array getTouchedRelations() Get the relationships that are touched on save. | |
* @method static void setTouchedRelations(array $touches) Set the relationships that are touched on save. | |
* @method static bool getIncrementing() Get the value indicating whether the IDs are incrementing. | |
* @method static void setIncrementing(bool $value) Set whether IDs are incrementing. | |
* @method static string toJson(int $options) Convert the model instance to JSON. | |
* @method static array toArray() Convert the model instance to an array. | |
* @method static array attributesToArray() Convert the model's attributes to an array. | |
* @method static array relationsToArray() Get the model's relationships in array form. | |
* @method static mixed getAttribute(string $key) Get an attribute from the model. | |
* @method static bool hasGetMutator(string $key) Determine if a get mutator exists for an attribute. | |
* @method static void setAttribute(string $key, mixed $value) Set a given attribute on the model. | |
* @method static bool hasSetMutator(string $key) Determine if a set mutator exists for an attribute. | |
* @method static array getDates() Get the attributes that should be converted to dates. | |
* @method static void replicate() Clone the model into a new, non-existing instance. | |
* @method static array getAttributes() Get all of the current attributes on the model. | |
* @method static void setRawAttributes(array $attributes, bool $sync) Set the array of model attributes. No checking is done. | |
* @method static array getOriginal(string|null $key, mixed $default) Get the model's original attribute values. | |
* @method static void syncOriginal() Sync the original attributes with the current. | |
* @method static bool isDirty(string $attribute) Determine if a given attribute is dirty. | |
* @method static array getDirty() Get the attributes that have been changed since last sync. | |
* @method static mixed getRelation(string $relation) Get a specified relationship. | |
* @method static void setRelation(string $relation, mixed $value) Set the specific relationship in the model. | |
* @method static void setRelations(array $relations) Set the entire relations array on the model. | |
* @method static void getConnection() Get the database connection for the model. | |
* @method static string getConnectionName() Get the current connection name for the model. | |
* @method static void setConnection(string $name) Set the connection associated with the model. | |
* @method static void resolveConnection(string $connection) Resolve a connection instance. | |
* @method static void getConnectionResolver() Get the connection resolver instance. | |
* @method static void setConnectionResolver(\Illuminate\Database\ConnectionResolverInterface $resolver) Set the connection resolver instance. | |
* @method static void getEventDispatcher() Get the event dispatcher instance. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance. | |
* @method static void unsetEventDispatcher() Unset the event dispatcher for models. | |
* @method static array getMutatedAttributes() Get the mutated attributes for a given instance. | |
* @method static bool offsetExists(mixed $offset) Determine if the given attribute exists. | |
* @method static mixed offsetGet(mixed $offset) Get the value for a given offset. | |
* @method static void offsetSet(mixed $offset, mixed $value) Set the value for a given offset. | |
* @method static void offsetUnset(mixed $offset) Unset the value for a given offset. | |
*/ | |
class Eloquent extends Illuminate\Database\Eloquent\Model {} | |
/** | |
* @method static bool hasTable(string $table) Determine if the given table exists. | |
* @method static bool hasColumn(string $table, string $column) Determine if the given table has a given column. | |
* @method static void table(string $table, Closure $callback) Modify a table on the schema. | |
* @method static void create(string $table, Closure $callback) Create a new table on the schema. | |
* @method static void drop(string $table) Drop a table from the schema. | |
* @method static void dropIfExists(string $table) Drop a table from the schema if it exists. | |
* @method static void rename(string $from, string $to) Rename a table on the schema. | |
* @method static void getConnection() Get the database connection instance. | |
* @method static void setConnection(\Illuminate\Database\Connection) Set the database connection instance. | |
*/ | |
class Schema extends Illuminate\Database\Schema\Builder {} | |
/** | |
* @method static string encrypt(string $value) Encrypt the given value. | |
* @method static string decrypt(string $payload) Decrypt the given value. | |
* @method static void setKey(string $key) Set the encryption key. | |
* @method static void setCipher(string $cipher) Set the encryption cipher. | |
* @method static void setMode(string $mode) Set the encryption mode. | |
*/ | |
class Crypt extends Illuminate\Encryption\Encrypter {} | |
/** | |
* @method static bool exists(string $path) Determine if a file exists. | |
* @method static string get(string $path) Get the contents of a file. | |
* @method static string getRemote(string $path) Get the contents of a remote file. | |
* @method static mixed getRequire(string $path) Get the returned value of a file. | |
* @method static void requireOnce(string $file) Require the given file once. | |
* @method static int put(string $path, string $contents) Write the contents of a file. | |
* @method static int append(string $path, string $data) Append to a file. | |
* @method static bool delete(string $path) Delete the file at a given path. | |
* @method static void move(string $path, string $target) Move a file to a new location. | |
* @method static void copy(string $path, string $target) Copy a file to a new location. | |
* @method static string extension(string $path) Extract the file extension from a file path. | |
* @method static string type(string $path) Get the file type of a given file. | |
* @method static int size(string $path) Get the file size of a given file. | |
* @method static int lastModified(string $path) Get the file's last modification time. | |
* @method static bool isDirectory(string $directory) Determine if the given path is a directory. | |
* @method static bool isWritable(string $path) Determine if the given path is writable. | |
* @method static bool isFile(string $file) Determine if the given path is a file. | |
* @method static array glob(string $pattern, int $flags) Find path names matching a given pattern. | |
* @method static array filetype(string $directory) Get an array of all files in a directory. | |
* @method static array allFiles(string $directory) Get all of the files from the given directory (recursive). | |
* @method static array directories(string $directory) Get all of the directories within a given directory. | |
* @method static bool makeDirectory(string $path, int $mode, bool $recursive) Create a directory. | |
* @method static void copyDirectory(string $directory, string $destination, int $options) Copy a directory from one location to another. | |
* @method static void deleteDirectory(string $directory, bool $preserve) Recursively delete a directory. | |
* @method static void cleanDirectory(string $directory) Empty the specified directory of all files and folders. | |
*/ | |
class File extends Illuminate\Filesystem\Filesystem {} | |
/** | |
* @var static void VERSION The Laravel framework version. | |
* @method static void setRequestForConsoleEnvironment() Set the application request for the console environment. | |
* @method static void redirectIfTrailingSlash() Redirect the request if it has a trailing slash. | |
* @method static void bindInstallPaths(array $paths) Bind the installation paths to the application. | |
* @method static string getBootstrapFile() Get the application bootstrap file. | |
* @method static void startExceptionHandling() Start the exception handling for the request. | |
* @method static string environment() Get the current application environment. | |
* @method static string detectEnvironment(array|string $environments) Detect the application's current environment. | |
* @method static bool runningInConsole() Determine if we are running in the console. | |
* @method static bool runningUnitTests() Determine if we are running unit tests. | |
* @method static void register(\Illuminate\Support\ServiceProvider|string $provider, array $options) Register a service provider with the application. | |
* @method static void loadDeferredProviders() Load and boot all of the remaining deferred providers. | |
* @method static mixed make(string $abstract, array $parameters) Resolve the given type from the container. | |
* @method static void before(Closure|string $callback) Register a "before" application filter. | |
* @method static void after(Closure|string $callback) Register an "after" application filter. | |
* @method static void close(Closure|string $callback) Register a "close" application filter. | |
* @method static void finish(Closure|string $callback) Register a "finish" application filter. | |
* @method static void shutdown(callable $callback) Register a "shutdown" callback. | |
* @method static void run() Handles the given request and delivers the response. | |
* @method static void dispatch(\Illuminate\Http\Request $request) Handle the given request and get the response. | |
* @method static void handle(\Illuminate\Http\Request $request, int $type, bool $catch) Handle the given request and get the response. | |
* @method static void boot() Boot the application's service providers. | |
* @method static void booting(mixed $callback) Register a new boot listener. | |
* @method static void booted(mixed $callback) Register a new "booted" listener. | |
* @method static void prepareRequest(\Illuminate\Http\Request $request) Prepare the request by injecting any services. | |
* @method static void prepareResponse(mixed $value) Prepare the given value as a Response object. | |
* @method static bool isDownForMaintenance() Determine if the application is currently down for maintenance. | |
* @method static void down(\Closure $callback) Register a maintenance mode event listener. | |
* @method static void abort(int $code, string $message, array $headers) Throw an HttpException with the given data. | |
* @method static void NotFoundHttpException(Closure $callback) Register a 404 error handler. | |
* @method static void error(Closure $callback) Register an application error handler. | |
* @method static void FatalErrorException(Closure $callback) Register an error handler for fatal errors. | |
* @method static void getConfigLoader() Get the configuration loader instance. | |
* @method static void getProviderRepository() Get the service provider repository instance. | |
* @method static void setLocale(string $locale) Set the current application locale. | |
* @method static array getLoadedProviders() Get the service providers that have been loaded. | |
* @method static void setDeferredServices(array $services) Set the application's deferred services. | |
*/ | |
class App extends Illuminate\Foundation\Application {} | |
/** | |
* @method static void call(string $command, array $parameters, \Symfony\Component\Console\Output\OutputInterface $output) Run an Artisan console command by name. | |
*/ | |
class Artisan extends Illuminate\Foundation\Artisan {} | |
/** | |
* @method static string make(string $value, array $options) Hash the given value. | |
* @method static bool check(string $value, string $hashedValue, array $options) Check the given plain value against a hash. | |
* @method static bool needsRehash(string $hashedValue, array $options) Check if the given hash has been hashed using the given options. | |
*/ | |
class Hash extends Illuminate\Hashing\BcryptHasher {} | |
/** | |
* @method static void instance() Return the Request instance. | |
* @method static string root() Get the root URL for the application. | |
* @method static string url() Get the URL (no query string) for the request. | |
* @method static string fullUrl() Get the full URL for the request. | |
* @method static string path() Get the current path info for the request. | |
* @method static string array_get(string $index, mixed $default) Get a segment from the URI (1 based index). | |
* @method static array segments() Get all of the segments for the request path. | |
* @method static bool is(string $pattern) Determine if the current request URI matches a pattern. | |
* @method static bool ajax() Determine if the request is the result of an AJAX call. | |
* @method static bool secure() Determine if the request is over HTTPS. | |
* @method static bool has(string|array $key) Determine if the request contains a given input item. | |
* @method static array all() Get all of the input and files for the request. | |
* @method static string input(string $key, mixed $default) Retrieve an input item from the request. | |
* @method static array only(array $keys) Get a subset of the items from the input data. | |
* @method static array except(array $keys) Get all of the input except for a specified array of items. | |
* @method static string query(string $key, mixed $default) Retrieve a query string item from the request. | |
* @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. | |
* @method static void file(string $key, mixed $default) Retrieve a file from the request. | |
* @method static bool hasFile(string $key) Determine if the uploaded data contains a file. | |
* @method static string header(string $key, mixed $default) Retrieve a header from the request. | |
* @method static string server(string $key, mixed $default) Retrieve a server variable from the request. | |
* @method static mixed old(string $key, mixed $default) Retrieve an old input item. | |
* @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. | |
* @method static void flashOnly(dynamic string) Flash only some of the input to the session. | |
* @method static void flashExcept(dynamic string) Flash only some of the input to the session. | |
* @method static void flush() Flush all of the old input from the session. | |
* @method static void merge(array $input) Merge new input into the current request's input array. | |
* @method static void replace(array $input) Replace the input for the current request. | |
* @method static mixed json(string $key, mixed $default) Get the JSON payload for the request. | |
* @method static bool isJson() Determine if the request is sending JSON. | |
* @method static bool wantsJson() Determine if the current request is asking for JSON in return. | |
* @method static void getSessionStore() Get the Illuminate session store implementation. | |
* @method static void setSessionStore(\Illuminate\Session\Store $session) Set the Illuminate session store implementation. | |
* @method static bool hasSessionStore() Determine if the session store has been set. | |
*/ | |
class Input extends Illuminate\Http\Request {} | |
/** | |
* @method static void instance() Return the Request instance. | |
* @method static string root() Get the root URL for the application. | |
* @method static string url() Get the URL (no query string) for the request. | |
* @method static string fullUrl() Get the full URL for the request. | |
* @method static string path() Get the current path info for the request. | |
* @method static string array_get(string $index, mixed $default) Get a segment from the URI (1 based index). | |
* @method static array segments() Get all of the segments for the request path. | |
* @method static bool is(string $pattern) Determine if the current request URI matches a pattern. | |
* @method static bool ajax() Determine if the request is the result of an AJAX call. | |
* @method static bool secure() Determine if the request is over HTTPS. | |
* @method static bool has(string|array $key) Determine if the request contains a given input item. | |
* @method static array all() Get all of the input and files for the request. | |
* @method static string input(string $key, mixed $default) Retrieve an input item from the request. | |
* @method static array only(array $keys) Get a subset of the items from the input data. | |
* @method static array except(array $keys) Get all of the input except for a specified array of items. | |
* @method static string query(string $key, mixed $default) Retrieve a query string item from the request. | |
* @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. | |
* @method static void file(string $key, mixed $default) Retrieve a file from the request. | |
* @method static bool hasFile(string $key) Determine if the uploaded data contains a file. | |
* @method static string header(string $key, mixed $default) Retrieve a header from the request. | |
* @method static string server(string $key, mixed $default) Retrieve a server variable from the request. | |
* @method static mixed old(string $key, mixed $default) Retrieve an old input item. | |
* @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. | |
* @method static void flashOnly(dynamic string) Flash only some of the input to the session. | |
* @method static void flashExcept(dynamic string) Flash only some of the input to the session. | |
* @method static void flush() Flush all of the old input from the session. | |
* @method static void merge(array $input) Merge new input into the current request's input array. | |
* @method static void replace(array $input) Replace the input for the current request. | |
* @method static mixed json(string $key, mixed $default) Get the JSON payload for the request. | |
* @method static bool isJson() Determine if the request is sending JSON. | |
* @method static bool wantsJson() Determine if the current request is asking for JSON in return. | |
* @method static void getSessionStore() Get the Illuminate session store implementation. | |
* @method static void setSessionStore(\Illuminate\Session\Store $session) Set the Illuminate session store implementation. | |
* @method static bool hasSessionStore() Determine if the session store has been set. | |
*/ | |
class Request extends Illuminate\Http\Request {} | |
/** | |
* @var static void original The original content of the response. | |
* @method static void header(string $key, string $value, bool $replace) Set a header on the Response. | |
* @method static void withCookie(\Symfony\Component\HttpFoundation\Cookie $cookie) Add a cookie to the response. | |
* @method static void setContent(mixed $content) Set the content on the response. | |
* @method static mixed getOriginalContent() Get the original response content. | |
*/ | |
class Response extends Illuminate\Http\Response {} | |
/** | |
* @method static void useFiles(string $path, string $level) Register a file log handler. | |
* @method static void useDailyFiles(string $path, int $days, string $level) Register a daily file log handler. | |
* @method static void getMonolog() Get the underlying Monolog instance. | |
* @method static void listen(Closure $callback) Register a new callback handler for when | |
* @method static void getEventDispatcher() Get the event dispatcher instance. | |
* @method static void setEventDispatcher(\Illuminate\Events\Dispatcher) Set the event dispatcher instance. | |
*/ | |
class Log extends Illuminate\Log\Writer {} | |
/** | |
* @method static void alwaysFrom(string $address, string $name) Set the global from address and name. | |
* @method static void plain(string $view, array $data, mixed $callback) Send a new message when only a plain part. | |
* @method static void send(string|array $view, array $data, Closure|string $callback) Send a new message using a view. | |
* @method static void queue(string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending. | |
* @method static void queueOn(string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending on the given queue. | |
* @method static void later(int $delay, string|array $view, array $data, Closure|string $callback, string $queue) Queue a new e-mail message for sending after (n) seconds. | |
* @method static void laterOn(string $queue, int $delay, string|array $view, array $data, Closure|string $callback) Queue a new e-mail message for sending after (n) seconds on the given queue. | |
* @method static void handleQueuedMessage(\Illuminate\Queue\Jobs\Job $job, array $data) Handle a queued e-mail message job. | |
* @method static void pretend(bool $value) Tell the mailer to not really send messages. | |
* @method static void getViewEnvironment() Get the view environment instance. | |
* @method static Swift_Mailer getSwiftMailer() Get the Swift Mailer instance. | |
* @method static void setSwiftMailer(Swift_Mailer $swift) Set the Swift Mailer instance. | |
* @method static void setLogger(\Illuminate\Log\Writer $logger) Set the log writer instance. | |
* @method static void setQueue(\Illuminate\Queue\QueueManager $queue) Set the queue manager instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
*/ | |
class Mail extends Illuminate\Mail\Mailer {} | |
/** | |
* @method static void setupPaginationContext() Setup the pagination context (current and last page). | |
* @method static void links() Get the pagination links view. | |
* @method static string getUrl(int $page) Get a URL for a given page number. | |
* @method static void appends(string $key, string $value) Add a query string value to the paginator. | |
* @method static void addQuery(string $key, string $value) Add a query string value to the paginator. | |
* @method static int getCurrentPage() Get the current page for the request. | |
* @method static int getLastPage() Get the last page that should be available. | |
* @method static int getFrom() Get the number of the first item on the paginator. | |
* @method static int getTo() Get the number of the last item on the paginator. | |
* @method static int getPerPage() Get the number of items to be displayed per page. | |
* @method static array getItems() Get the items being paginated. | |
* @method static int getTotal() Get the total number of items in the collection. | |
* @method static void setBaseUrl(string $baseUrl) Set the base URL in use by the paginator. | |
* @method static void getEnvironment() Get the pagination environment. | |
* @method static ArrayIterator getIterator() Get an iterator for the items. | |
* @method static bool isEmpty() Determine if the list of items is empty or not. | |
* @method static int count() Get the number of items for the current page. | |
* @method static bool offsetExists(mixed $key) Determine if the given item exists. | |
* @method static mixed offsetGet(mixed $key) Get the item at the given offset. | |
* @method static void offsetSet(mixed $key, mixed $value) Set the item at the given offset. | |
* @method static void offsetUnset(mixed $key) Unset the item at the given key. | |
*/ | |
class Paginator extends Illuminate\Pagination\Paginator {} | |
/** | |
* @method static void connection(string $name) Get a specific Redis connection instance. | |
* @method static mixed command(string $method, array $parameters) Run a command against the Redis database. | |
*/ | |
class Redis extends Illuminate\Redis\Database {} | |
/** | |
* @method static void home(int $status) Create a new redirect response to the "home" route. | |
* @method static void back(int $status, array $headers) Create a new redirect response to the previous location. | |
* @method static void refresh(int $status, array $headers) Create a new redirect response to the current URI. | |
* @method static void guest(string $path, int $status, array $headers, bool $secure) Create a new redirect response, while putting the current URL in the session. | |
* @method static void intended(string $default, int $status, array $headers, bool $secure) Create a new redirect response to the previously intended location. | |
* @method static void to(string $path, int $status, array $headers, bool $secure) Create a new redirect response to the given path. | |
* @method static void secure(string $path, int $status, array $headers) Create a new redirect response to the given HTTPS path. | |
* @method static void route(string $route, array $parameters, int $status, array $headers) Create a new redirect response to a named route. | |
* @method static void action(string $action, array $parameters, int $status, array $headers) Create a new redirect response to a controller action. | |
* @method static void getUrlGenerator() Get the URL generator instance. | |
* @method static void setSession(\Illuminate\Session\Store $session) Set the active session store. | |
*/ | |
class Redirect extends Illuminate\Routing\Redirector {} | |
/** | |
* @method static void explode(\Illuminate\Container\Container $container) Create a new router instance. | |
* @method static void get(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void post(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void put(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void patch(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void delete(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void options(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void match(string $method, string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void any(string $pattern, mixed $action) Add a new route to the collection. | |
* @method static void controllers(array $controllers) Register an array of controllers with wildcard routing. | |
* @method static void controller(string $uri, string $controller, array $names) Route a controller to a URI with wildcard routing. | |
* @method static void resource(string $resource, string $controller, array $options) Route a resource to a controller. | |
* @method static string getResourceUri(string $resource) Get the base resource URI for a given resource. | |
* @method static string getResourceWildcard(string $value) Format a resource wildcard parameter. | |
* @method static void group(array $attributes, Closure $callback) Create a route group with shared attributes. | |
* @method static void dispatch(\Symfony\Component\HttpFoundation\Request $request) Get the response for a given request. | |
* @method static void before(Closure|string $callback) Register a "before" routing filter. | |
* @method static void after(Closure|string $callback) Register an "after" routing filter. | |
* @method static void close(Closure|string $callback) Register a "close" routing filter. | |
* @method static void finish(Closure|string $callback) Register a "finish" routing filters. | |
* @method static void filter(string $name, Closure|string $callback) Register a new filter with the application. | |
* @method static Closure getFilter(string $name) Get a registered filter callback. | |
* @method static void when(string $pattern, string|array $names, array|null $methods) Tie a registered filter to a URI pattern. | |
* @method static array findPatternFilters(\Illuminate\Http\Request $request) Find the patterned filters matching a request. | |
* @method static mixed callFinishFilter(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\HttpFoundation\Response $response) Call the finish" global filter. | |
* @method static mixed callCloseFilter(\Symfony\Component\HttpFoundation\Request $request, \Symfony\Component\HttpFoundation\Response $response) Call the "close" global filter. | |
* @method static void pattern(string $key, string $pattern) Set a global where pattern on all routes | |
* @method static void is_null(string $key, string $class) Register a model binder for a wildcard. | |
* @method static void bind(string $key, mixed $binder) Register a custom parameter binder. | |
* @method static bool hasBinder(string $key) Determine if a given key has a registered binder. | |
* @method static mixed performBinding(string $key, mixed $value, \Illuminate\Routing\Route $route) Call a binder for a given wildcard. | |
* @method static void prepare(mixed $value, \Illuminate\Http\Request $request) Prepare the given value as a Response object. | |
* @method static string currentRouteName() Get the current route name. | |
* @method static bool currentRouteNamed(string $name) Determine if the current route has a given name. | |
* @method static string currentRouteAction() Get the current route action. | |
* @method static bool currentRouteUses(string $action) Determine if the current route uses a given controller action. | |
* @method static bool filtersEnabled() Determine if route filters are enabled. | |
* @method static void enableFilters() Enable the running of filters. | |
* @method static void disableFilters() Disable the running of all filters. | |
* @method static void getRoutes() Retrieve the entire route collection. | |
* @method static void getRequest() Get the current request being dispatched. | |
* @method static void getCurrentRoute() Get the current route being executed. | |
* @method static void setCurrentRoute(\Illuminate\Routing\Route $route) Set the current route on the router. | |
* @method static array getFilters() Get the filters defined on the router. | |
* @method static array getGlobalFilters() Get the global filters defined on the router. | |
* @method static void getInspector() Get the controller inspector instance. | |
* @method static void setInspector(\Illuminate\Routing\Controllers\Inspector $inspector) Set the controller inspector instance. | |
* @method static void getContainer() Get the container used by the router. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the container instance on the router. | |
*/ | |
class Route extends Illuminate\Routing\Router {} | |
/** | |
* @method static string full() Get the full URL for the current request. | |
* @method static string current() Get the current URL for the request. | |
* @method static string previous() Get the URL for the previous request. | |
* @method static string to(string $path, mixed $parameters, bool $secure) Generate a absolute URL to the given path. | |
* @method static string secure(string $path, array $parameters) Generate a secure, absolute URL to the given path. | |
* @method static string asset(string $path, bool $secure) Generate a URL to an application asset. | |
* @method static string secureAsset(string $path) Generate a URL to a secure asset. | |
* @method static string route(string $name, mixed $parameters, bool $absolute) Get the URL to a named route. | |
* @method static string action(string $action, mixed $parameters, bool $absolute) Get the URL to a controller action. | |
* @method static bool isValidUrl(string $path) Determine if the given path is a valid URL. | |
* @method static void getRequest() Get the request instance. | |
* @method static void setRequest(\Symfony\Component\HttpFoundation\Request $request) Set the current request instance. | |
* @method static void getGenerator() Get the Symfony URL generator instance. | |
* @method static void setGenerator(\Symfony\Component\Routing\Generator\UrlGenerator $generator) Set the Symfony URL generator instance. | |
*/ | |
class URL extends Illuminate\Routing\UrlGenerator {} | |
/** | |
* @method static void beforeFilter(string $filter, array $options) Register a new "before" filter on the controller. | |
* @method static void afterFilter(string $filter, array $options) Register a new "after" filter on the controller. | |
* @method static void callAction(\Illuminate\Container\Container $container, \Illuminate\Routing\Router $router, string $method, array $parameters) Execute an action on the controller. | |
* @method static array getControllerFilters() Get the code registered filters. | |
* @method static mixed missingMethod(array $parameters) Handle calls to missing methods on the controller. | |
*/ | |
class Controller extends Illuminate\Routing\Controllers\Controller {} | |
/** | |
* @method static bool has(string $key, string $locale) Determine if a translation exists. | |
* @method static string get(string $key, array $replace, string $locale) Get the translation for the given key. | |
* @method static string choice(string $key, int $number, array $replace, string $locale) Get a translation according to an integer value. | |
* @method static string trans(string $id, array $parameters, string $domain, string $locale) Get the translation for a given key. | |
* @method static string transChoice(string $id, int $number, array $parameters, string $domain, string $locale) Get a translation according to an integer value. | |
* @method static string load(string $namespace, string $group, string $locale) Load the specified language group. | |
* @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. | |
* @method static array parseKey(string $key) Parse a key into namespace, group, and item. | |
* @method static void getSelector() Get the message selector instance. | |
* @method static void setSelector(\Symfony\Component\Translation\MessageSelector $selector) Set the message selector instance. | |
* @method static void getLoader() Get the language line loader implementation. | |
* @method static string locale() Get the default locale being used. | |
* @method static string getLocale() Get the default locale being used. | |
* @method static void setLocale(string $locale) Set the default locale. | |
*/ | |
class Lang extends Illuminate\Translation\Translator {} | |
/** | |
* @method static bool passes() Determine if the data passes the validation rules. | |
* @method static bool fails() Determine if the data fails the validation rules. | |
* @method static array getExtensions() Get the array of custom validator extensions. | |
* @method static void addExtensions(array $extensions) Register an array of custom validator extensions. | |
* @method static void addImplicitExtensions(array $extensions) Register an array of custom implicit validator extensions. | |
* @method static void addExtension(string $rule, Closure|string $extension) Register a custom validator extension. | |
* @method static void addImplicitExtension(string $rule, Closure $extension) Register a custom implicit validator extension. | |
* @method static array getData() Get the data under validation. | |
* @method static void setData(array $data) Set the data under validation. | |
* @method static array getRules() Get the validation rules. | |
* @method static void setAttributeNames(array $attributes) Set the custom attributes on the validator. | |
* @method static array getFiles() Get the files under validation. | |
* @method static void setFiles(array $files) Set the files under validation. | |
* @method static void getPresenceVerifier() Get the Presence Verifier implementation. | |
* @method static void setPresenceVerifier(\Illuminate\Validation\PresenceVerifierInterface $presenceVerifier) Set the Presence Verifier implementation. | |
* @method static void getTranslator() Get the Translator implementation. | |
* @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator) Set the Translator implementation. | |
* @method static array getCustomMessages() Get the custom messages for the validator | |
* @method static void setCustomMessages(array $messages) Set the custom messages for the validator | |
* @method static array failed() Get the failed validation rules. | |
* @method static void messages() Get the message container for the validator. | |
* @method static void errors() An alternative more semantic shortcut to the message container. | |
* @method static void getMessageBag() Get the messages for the instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
*/ | |
class Validator extends Illuminate\Validation\Factory {} | |
/** | |
* @method static void make(string $view, array $data, array $mergeData) Get a evaluated view contents for the given view. | |
* @method static void of(string $view, mixed $data) Get a evaluated view contents for a named view. | |
* @method static void name(string $view, string $name) Register a named view. | |
* @method static bool exists(string $view) Determine if a given view exists. | |
* @method static string renderEach(string $view, array $data, string $iterator, string $empty) Get the rendered contents of a partial from a loop. | |
* @method static void share(string $key, mixed $value) Add a piece of shared data to the environment. | |
* @method static Closure composer(array|string $views, Closure|string $callback) Register a view composer event. | |
* @method static void callComposer(\Illuminate\View\View $view) Call the composer for a given view. | |
* @method static void startSection(string $section, string $content) Start injecting content into a section. | |
* @method static void inject(string $section, string $content) Inject inline content into a section. | |
* @method static string yieldSection() Stop injecting content into a section and return its contents. | |
* @method static string stopSection(bool $overwrite) Stop injecting content into a section. | |
* @method static string yieldContent(string $section) Get the string contents of a section. | |
* @method static void flushSections() Flush all of the section contents. | |
* @method static void incrementRender() Increment the rendering counter. | |
* @method static void decrementRender() Decrement the rendering counter. | |
* @method static bool doneRendering() Check if there are no active render operations. | |
* @method static void addLocation(string $location) Add a location to the array of view locations. | |
* @method static void addNamespace(string $namespace, string|array $hints) Add a new namespace to the loader. | |
* @method static void addExtension(string $extension, string $engine, Closure $resolver) Register a valid view extension and its engine. | |
* @method static array getExtensions() Get the extension to engine bindings. | |
* @method static void getEngineResolver() Get the engine resolver instance. | |
* @method static void getFinder() Get the view finder instance. | |
* @method static void getDispatcher() Get the event dispatcher instance. | |
* @method static void getContainer() Get the IoC container instance. | |
* @method static void setContainer(\Illuminate\Container\Container $container) Set the IoC container instance. | |
* @method static array getShared() Get all of the shared data for the environment. | |
* @method static array getSections() Get the entire array of sections. | |
* @method static array getNames() Get all of the registered named views in environment. | |
*/ | |
class View extends Illuminate\View\Environment {} | |
/** | |
* @method static void copy(string $originFile The original filename, string $targetFile The target filename, boolean $override Whether to override an existing file or not) Copies a file. | |
* @method static void mkdir(string|array|\Traversable $dirs The directory path, integer $mode The directory mode) Creates a directory recursively. | |
* @method static Boolean exists(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check) Checks the existence of files or directories. | |
* @method static void touch(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to create, integer $time The touch time as a unix timestamp, integer $atime The access time as a unix timestamp) Sets access and modification time of file. | |
* @method static void remove(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to remove) Removes files or directories. | |
* @method static void chmod(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change mode, integer $mode The new mode (octal), integer $umask The mode mask (octal), Boolean $recursive Whether change the mod recursively or not) Change mode for an array of files or directories. | |
* @method static void chown(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change owner, string $user The new owner user name, Boolean $recursive Whether change the owner recursively or not) Change the owner of an array of files or directories | |
* @method static void chgrp(string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to change group, string $group The group name, Boolean $recursive Whether change the group recursively or not) Change the group of an array of files or directories | |
* @method static void rename(string $origin The origin filename or directory, string $target The new filename or directory, Boolean $overwrite Whether to overwrite the target if it already exists) Renames a file or a directory. | |
* @method static void symlink(string $originDir The origin directory path, string $targetDir The symbolic link name, Boolean $copyOnWindows Whether to copy files if on Windows) Creates a symbolic link or copy a directory. | |
* @method static string makePathRelative(string $endPath Absolute path of target, string $startPath Absolute path where traversal begins) Given an existing path, convert it to a path relative to a given starting path | |
* @method static void mirror(string $originDir The origin directory, string $targetDir The target directory, \Traversable $iterator A Traversable instance, array $options An array of boolean options) Mirrors a directory to another. | |
* @method static Boolean isAbsolutePath(string $file A file path) Returns whether the file path is an absolute path. | |
* @method static void dumpFile(string $filename The file to be written to., string $content The data to write into the file., integer $mode The file mode (octal).) Atomically dumps content into a file. | |
*/ | |
class File extends Illuminate\Filesystem\Filesystem {} | |
/** | |
* @method static void cleanup() Cleanups storage. | |
* @method static Boolean lock(Request $request A Request instance) Locks the cache for a given Request. | |
* @method static Boolean unlock(Request $request A Request instance) Releases the lock for the given Request. | |
* @method static void isLocked($request) | |
* @method static Response lookup(Request $request A Request instance) Locates a cached Response for the Request provided. | |
* @method static string write(Request $request A Request instance, Response $response A Response instance) Writes a cache entry to the store for the given Request and Response. | |
* @method static void invalidate(Request $request A Request instance) Invalidates all cache entries that match the request. | |
* @method static Boolean purge(string $url A URL) Purges data for the given URL. | |
* @method static void getPath($key) | |
*/ | |
class Cache extends Illuminate\Cache\Store {} | |
/** | |
* @method static void setOptions(array $options An array of options) Sets options. | |
* @method static void setOption(string $key The key, mixed $value The value) Sets an option. | |
* @method static mixed getOption(string $key The key) Gets an option value. | |
* @method static void getRouteCollection() {@inheritdoc} | |
* @method static void setContext($context) {@inheritdoc} | |
* @method static void getContext() {@inheritdoc} | |
* @method static void generate($name, $parameters) {@inheritdoc} | |
* @method static void match($pathinfo) {@inheritdoc} | |
* @method static UrlMatcherInterface getMatcher() Gets the UrlMatcher instance associated with this Router. | |
* @method static UrlGeneratorInterface getGenerator() Gets the UrlGenerator instance associated with this Router. | |
*/ | |
class Route extends Illuminate\Routing\Router {} | |
/** | |
* @method static void addLoader(string $format The name of the loader (@see addResource()), LoaderInterface $loader A LoaderInterface instance) Adds a Loader. | |
* @method static void addResource(string $format The name of the loader (@see addLoader()), mixed $resource The resource name, string $locale The locale, string $domain The domain) Adds a Resource. | |
* @method static void setLocale($locale) {@inheritdoc} | |
* @method static void getLocale() {@inheritdoc} | |
* @method static void setFallbackLocale(string|array $locales The fallback locale(s)) Sets the fallback locale(s). | |
* @method static void setFallbackLocales(array $locales The fallback locales) Sets the fallback locales. | |
* @method static array getFallbackLocales() Gets the fallback locales. | |
* @method static void trans($id, $parameters) {@inheritdoc} | |
* @method static void transChoice($id, $number, $parameters) {@inheritdoc} | |
*/ | |
class Lang extends Illuminate\Translation\Translator {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment