├── README.md └── _ide_helpers.php /README.md: -------------------------------------------------------------------------------- 1 | #laravel4-phpstorm-helper 2 | 3 | Provides **Laravel 4** auto-completion and code intelligence support for the **Jetbrains PhpStorm** IDE. 4 | 5 | ![](http://i.imgur.com/Lf4En.png) 6 | ![](http://i.imgur.com/WFC2T.png) 7 | 8 | ##Installation 9 | 10 | Copy `_ide_helper.php` into your `app/` directory. 11 | 12 | > Note: If you want to place the `_ide_helper.php` in another location (outside the Laravel application root), you will need to add the location in your PhpStorm `Project Settings > Directories`. -------------------------------------------------------------------------------- /_ide_helpers.php: -------------------------------------------------------------------------------- 1 | 5 | * Implements code completion for Laravel 4 in JetBrains PhpStorm and SublimeText 2 6 | * -------------------------------------------------------------------------------- 7 | */ 8 | 9 | /** 10 | * @method static bool check() Determine if the current user is authenticated. 11 | * @method static bool guest() Determine if the current user is a guest. 12 | * @method static void user() Get the currently authenticated user. 13 | * @method static bool attempt(array $credentials, bool $remember) Attempt to authenticate a user using the given credentials. 14 | * @method static void login(Illuminate\Auth\UserInterface $user, bool $remember) Log a user into the application. 15 | * @method static void logout() Log the user out of the application. 16 | * @method static void getCookieJar() Get the cookie creator instance used by the guard. 17 | * @method static void setCookieJar(Illuminate\CookieJar $cookie) Set the cookie creator instance used by the guard. 18 | * @method static void getDispatcher() Get the event dispatcher instance. 19 | * @method static void setDispatcher(Illuminate\Events\Dispatcher) Set the event dispatcher instance. 20 | * @method static void getSession() Get the session store used by the guard. 21 | * @method static array getQueuedCookies() Get the cookies queued by the guard. 22 | * @method static void getProvider() Get the user provider used by the guard. 23 | * @method static void getUser() Return the currently cached user of the application. 24 | * @method static void setUser(Illuminate\Auth\UserInterface $user) Set the current user of the application. 25 | * @method static string getName() Get a unique identifier for the auth session value. 26 | * @method static string getRecallerName() Get the name of the cookie used to store the "recaller". 27 | */ 28 | class Auth extends Illuminate\Auth\Guard {} 29 | 30 | /** 31 | * @method static bool has(string $key) Determine if an item exists in the cache. 32 | * @method static mixed get(string $key, mixed $default) Retrieve an item from the cache by key. 33 | * @method static void put(string $key, mixed $value, int $minutes) Store an item in the cache. 34 | * @method static void forever(string $key, mixed $value) Store an item in the cache indefinitely. 35 | * @method static void remember(string $key, int $minutes, Closure $callback) Get an item from the cache, or store the default value. 36 | * @method static void rememberForever(string $key, Closure $callback) Get an item from the cache, or store the default value forever. 37 | * @method static void forget(string $key) Remove an item from the cache. 38 | * @method static void flush() Remove all items from the cache. 39 | * @method static int getDefaultCacheTime() Get the default cache time. 40 | * @method static void setDefaultCacheTime(int $minutes) Set the default cache time in minutes. 41 | * @method static bool existsInMemory(string $key) Determine if an item is in memory. 42 | * @method static array getMemory() Get all of the values in memory. 43 | * @method static mixed getFromMemory(string $key) Get the value of an item in memory. 44 | * @method static void setInMemory(string $key, mixed $value) Set the value of an item in memory. 45 | * @method static bool offsetExists(string $key) Determine if a cached value exists. 46 | * @method static mixed offsetGet(string $key) Retrieve an item from the cache by key. 47 | * @method static void offsetSet(string $key, mixed $value) Store an item in the cache for the default time. 48 | * @method static void offsetUnset(string $key) Remove an item from the cache. 49 | */ 50 | class Cache extends Illuminate\Cache\Store {} 51 | 52 | /** 53 | * @method static bool has(string $key) Determine if the given configuration value exists. 54 | * @method static mixed get(string $key, mixed $default) Get the specified configuration value. 55 | * @method static void set(string $key, mixed $value) Set a given configuration value. 56 | * @method static void getEnvironment(string $package, string $hint, string $namespace) Register a package for cascading configuration. 57 | * @method static void afterLoading(string $namespace, Closure $callback) Register an after load callback for a given namespace. 58 | * @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. 59 | * @method static void getLoader() Get the loader implementation. 60 | * @method static string getEnvironment() Get the current configuration environment. 61 | * @method static array getAfterLoadCallbacks() Get the after load callback array. 62 | * @method static array getItems() Get all of the configuration items. 63 | * @method static bool offsetExists(string $key) Determine if the given configuration option exists. 64 | * @method static bool offsetGet(string $key) Get a configuration option. 65 | * @method static bool offsetSet(string $key) Set a configuration option. 66 | * @method static bool offsetUnset(string $key) Unset a configuration option. 67 | */ 68 | class Config extends Illuminate\Config\Repository {} 69 | 70 | /** 71 | * @method static bool has(string $key) Determine if a cookie exists and is not null. 72 | * @method static mixed get(string $key, mixed $default) Get the value of the given cookie. 73 | * @method static void make(string $name, string $value, int $minutes) Create a new cookie instance. 74 | * @method static void forever(string $name, string $value) Create a cookie that lasts "forever" (five years). 75 | * @method static void forget(string $name) Expire the given cookie. 76 | * @method static void getRequest() Get the request instance. 77 | * @method static void getEncrypter() Get the encrypter instance. 78 | */ 79 | class Cookie extends Illuminate\Cookie\CookieJar {} 80 | 81 | /** 82 | * @method static void useDefaultQueryGrammar() Set the query grammar to the default implementation. 83 | * @method static void useDefaultSchemaGrammar() Set the schema grammar to the default implementation. 84 | * @method static void useDefaultPostProcessor() Set the query post processor to the default implementation. 85 | * @method static void getSchemaBuilder() Get a schema builder instance for the connection. 86 | * @method static void table(string $table) Begin a fluent query against a database table. 87 | * @method static void raw(mixed $value) Get a new raw query expression. 88 | * @method static mixed selectOne(string $query, array $bindings) Run a select statement and return a single result. 89 | * @method static array pretending(string $query, array $bindings) Run a select statement against the database. 90 | * @method static bool insert(string $query, array $bindings) Run an insert statement against the database. 91 | * @method static int update(string $query, array $bindings) Run an update statement against the database. 92 | * @method static int delete(string $query, array $bindings) Run a delete statement against the database. 93 | * @method static bool pretending(string $query, array $bindings) Execute an SQL statement and return the boolean result. 94 | * @method static int pretending(string $query, array $bindings) Run an SQL statement and get the number of rows affected. 95 | * @method static array prepareBindings(array $bindings) Prepare the query bindings for execution. 96 | * @method static mixed transaction(Closure $callback) Execute a Closure within a transaction. 97 | * @method static array pretend(Closure $callback) Execute the given callback in "dry run" mode. 98 | * @method static void logQuery(string $query, array $bindings) Log a query in the connection's query log. 99 | * @method static PDO getPdo() Get the currently used PDO connection. 100 | * @method static string getDriverName() Get the PDO driver name. 101 | * @method static void getQueryGrammar() Get the query grammar used by the connection. 102 | * @method static void setQueryGrammar(Illuminate\Database\Query\Grammars\Grammar) Set the query grammar used by the connection. 103 | * @method static void getSchemaGrammar() Get the schema grammar used by the connection. 104 | * @method static void setSchemaGrammar(Illuminate\Database\Schema\Grammars\Grammar) Set the schema grammar used by the connection. 105 | * @method static void getPostProcessor() Get the query post processor used by the connection. 106 | * @method static void setPostProcessor(Illuminate\Database\Query\Processors\Processor) Set the query post processor used by the connection. 107 | * @method static void getEventDispatcher() Get the event dispatcher used by the connection. 108 | * @method static void setEventDispatcher(Illuminate\Events\Dispatcher) Set the event dispatcher instance on the connection. 109 | * @method static void getPaginator() Get the paginator environment instance. 110 | * @method static void setPaginator(Illuminate\Pagination\Environment|Closure $paginator) Set the pagination environment instance. 111 | * @method static bool pretending() Determine if the connection in a "dry run". 112 | * @method static int getFetchMode() Get the default fetch mode for the connection. 113 | * @method static int setFetchMode(int $fetchMode) Set the default fetch mode for the connection. 114 | * @method static array getQueryLog() Get the connection query log. 115 | * @method static string getDatabaseName() Get the name of the connected database. 116 | * @method static string setDatabaseName(string $database) Set the name of the connected database. 117 | * @method static string getTablePrefix() Get the table prefix for the connection. 118 | * @method static void withTablePrefix(Illuminate\Database\Grammar $grammar) Set the table prefix and return the grammar. 119 | */ 120 | class DB extends Illuminate\Database\Connection {} 121 | 122 | /** 123 | * @var static void incrementing Indicates if the IDs are auto-incrementing. 124 | * @var static void timestamps Indicates if the model should be timestamped. 125 | * @var static void exists Indicates if the model exists. 126 | * @method static void fill(array $attributes) Fill the model with an array of attributes. 127 | * @method static void newInstance(array $attributes, bool $exists) Create a new instance of the given model. 128 | * @method static void newExisting(array $attributes) Create a new model instance that is existing. 129 | * @method static void create(array $attributes) Save a new model and return the instance. 130 | * @method static void on(string $connection) Begin querying the model on a given connection. 131 | * @method static void all(array $columns) Get all of the models from the database. 132 | * @method static void find(mixed $id, array $columns) Find a model by its primary key. 133 | * @method static void with(array $relations) Being querying a model with eager loading. 134 | * @method static void hasOne(string $related, string $foreignKey) Define a one-to-one relationship. 135 | * @method static void morphOne(string $related, string $name, string $foreignKey) Define a polymorphic one-to-one relationship. 136 | * @method static void belongsTo(string $related, string $foreignKey) Define an inverse one-to-one or many relationship. 137 | * @method static void morphTo(string $name) Define an polymorphic, inverse one-to-one or many relationship. 138 | * @method static void hasMany(string $related, string $foreignKey) Define a one-to-many relationship. 139 | * @method static void morphMany(string $related, string $name, string $foreignKey) Define a polymorphic one-to-many relationship. 140 | * @method static void belongsToMany(string $related, string $table, string $foreignKey, string $otherKey) Define a many-to-many relationship. 141 | * @method static string joiningTable(string $related) Get the joining table name for a many-to-many relation. 142 | * @method static void delete() Delete the model from the database. 143 | * @method static bool save() Save the model to the database. 144 | * @method static mixed freshTimestamp() Get a fresh timestamp for the model. 145 | * @method static void newQuery() Get a new query builder for the model's table. 146 | * @method static void newCollection(array $models) Create a new Eloquent Collection instance. 147 | * @method static string getTable() Get the table associated with the model. 148 | * @method static void setTable(string $table) Set the table associated with the model. 149 | * @method static mixed getKey() Get the value of the model's primary key. 150 | * @method static string getKeyName() Get the primary key for the model. 151 | * @method static bool usesTimestamps() Determine if the model uses timestamps. 152 | * @method static int getPerPage() Get the number of models to return per page. 153 | * @method static void setPerPage(int $perPage) Set the number of models ot return per page. 154 | * @method static string getForeignKey() Get the default foreign key name for the model. 155 | * @method static array getHidden() Get the hidden attributes for the model. 156 | * @method static void setHidden(array $hidden) Set the hidden attributes for the model. 157 | * @method static array getFillable() Get the fillable attributes for the model. 158 | * @method static void fillable(array $fillable) Set the fillable attributes for the model. 159 | * @method static void guard(array $guarded) Set the guarded attributes for the model. 160 | * @method static bool isFillable(string $key) Determine if the given attribute may be mass assigned. 161 | * @method static bool getIncrementing() Get the value indicating whether the IDs are incrementing. 162 | * @method static void setIncrementing(bool $value) Set whether IDs are incrementing. 163 | * @method static string toJson(int $options) Convert the model instance to JSON. 164 | * @method static array toArray() Convert the model instance to an array. 165 | * @method static array relationsToArray() Get the model's relationships in array form. 166 | * @method static mixed getAttribute(string $key) Get an attribute from the model. 167 | * @method static bool hasGetMutator(string $key) Determine if a get mutator exists for an attribute. 168 | * @method static void setAttribute(string $key, mixed $value) Set a given attribute on the model. 169 | * @method static bool hasSetMutator(string $key) Determine if a set mutator exists for an attribute. 170 | * @method static array getAttributes() Get all of the current attributes on the model. 171 | * @method static void setRawAttributes(array $attributes, bool $sync) Set the array of model attributes. No checking is done. 172 | * @method static array getOriginal(string|null $key, mixed $default) Get the model's original attribute values. 173 | * @method static void syncOriginal() Sync the original attributes with the current. 174 | * @method static mixed getRelation(string $relation) Get a specified relationship. 175 | * @method static void setRelation(string $relation, mixed $value) Set the specific relationship in the model. 176 | * @method static void getConnection() Get the database connection for the model. 177 | * @method static string getConnectionName() Get the current connection name for the model. 178 | * @method static void setConnection(string $name) Set the connection associated with the model. 179 | * @method static void resolveConnection(string $connection) Resolve a connection instance by name. 180 | * @method static void getConnectionResolver() Get the connection resolver instance. 181 | * @method static void setConnectionResolver(Illuminate\Database\ConnectionResolverInterface $resolver) Set the connection resolver instance. 182 | */ 183 | class Eloquent extends Illuminate\Database\Eloquent\Model {} 184 | 185 | /** 186 | * @method static bool hasTable(string $table) Determine if the given table exists. 187 | * @method static void table(string $table, Closure $callback) Modify a table on the schema. 188 | * @method static void create(string $table, Closure $callback) Create a new table on the schema. 189 | * @method static void drop(string $table) Drop a table from the schema. 190 | * @method static void dropIfExists(string $table) Drop a table from the schema if it exists. 191 | * @method static void rename(string $from, string $to) Rename a table on the schema. 192 | * @method static void getConnection() Get the database connection instance. 193 | * @method static void setConnection(Illuminate\Database\Connection) Set the database connection instance. 194 | */ 195 | class Schema extends Illuminate\Database\Schema\Builder {} 196 | 197 | /** 198 | * @method static string encrypt(string $value) Encrypt the given value. 199 | * @method static string decrypt(string $value) Decrypt the given value. 200 | */ 201 | class Crypt extends Illuminate\Encryption\Encrypter {} 202 | 203 | /** 204 | * @method static void stop() Stop the propagation of the event to other listeners. 205 | * @method static bool isStopped() Determine if the event has been stopped from propagating. 206 | */ 207 | class Event extends Illuminate\Events\Event {} 208 | 209 | /** 210 | * @method static bool exists(string $path) Determine if a file exists. 211 | * @method static string get(string $path) Get the contents of a file. 212 | * @method static string getRemote(string $path) Get the contents of a remote file. 213 | * @method static mixed getRequire(string $path) Get the returned value of a file. 214 | * @method static void requireOnce(string $file) Require the given file once. 215 | * @method static int put(string $path, string $contents) Write the contents of a file. 216 | * @method static int append(string $path, string $data) Append to a file. 217 | * @method static bool delete(string $path) Delete the file at a given path. 218 | * @method static void move(string $path, string $target) Move a file to a new location. 219 | * @method static void copy(string $path, string $target) Copy a file to a new location. 220 | * @method static string extension(string $path) Extract the file extension from a file path. 221 | * @method static string type(string $path) Get the file type of a given file. 222 | * @method static int size(string $path) Get the file size of a given file. 223 | * @method static int lastModified(string $path) Get the file's last modification time. 224 | * @method static bool isDirectory(string $directory) Determine if the given path is a directory. 225 | * @method static array glob(string $pattern, int $flags) Find path names matching a given pattern. 226 | * @method static array filetype(string $directory) Get an array of all files in a directory. 227 | * @method static bool makeDirectory(string $path, int $mode, bool $recursive) Create a directory. 228 | * @method static void copyDirectory(string $directory, string $destination, int $options) Copy a directory from one location to another. 229 | * @method static void deleteDirectory(string $directory, bool $preserve) Recursively delete a directory. 230 | * @method static void cleanDirectory(string $directory) Empty the specified directory of all files and folders. 231 | */ 232 | class File extends Illuminate\Filesystem\Filesystem {} 233 | 234 | /** 235 | * @method static string getBootstrapFile() Get the application bootstrap file. 236 | * @method static void registerAliasLoader(array $aliases) Register the aliased class loader. 237 | * @method static void ExceptionServiceProvider() Start the exception handling for the request. 238 | * @method static string detectEnvironment(array|string $environments) Detect the application's current environment. 239 | * @method static bool runningInConsole() Determine if we are running in the console. 240 | * @method static bool runningUnitTests() Determine if we are running unit tests. 241 | * @method static void register(Illuminate\Support\ServiceProvider $provider, array $options) Register a service provider with the application. 242 | * @method static mixed make(string $abstract, array $parameters) Resolve the given type from the container. 243 | * @method static void booting(mixed $callback) Register a new boot event listener. 244 | * @method static void before(Closure|string $callback) Register a "before" application filter. 245 | * @method static void after(Closure|string $callback) Register an "after" application filter. 246 | * @method static void close(Closure|string $callback) Register a "close" application filter. 247 | * @method static void finish(Closure|string $callback) Register a "finish" application filter. 248 | * @method static void run() Handles the given request and delivers the response. 249 | * @method static void dispatch(Illuminate\Foundation\Request $request) Handle the given request and get the response. 250 | * @method static void handle(Illuminate\Foundation\Request $request, int $type, bool $catch) Handle the given request and get the response. 251 | * @method static void prepareRequest(Illuminate\Foundation\Request $request) Prepare the request by injecting any services. 252 | * @method static void prepareResponse(mixed $value, Illuminate\Foundation\Request $request) Prepare the given value as a Response object. 253 | * @method static void setLocale(string $locale) Set the current application locale. 254 | * @method static void abort(int $code, string $message, array $headers) Throw an HttpException with the given data. 255 | * @method static void error(Closure $callback) Register an application error handler. 256 | * @method static void NotFoundHttpException(Closure $callback) Register a 404 error handler. 257 | * @method static array getLoadedProviders() Get the service providers that have been loaded. 258 | * @method static void setDeferredServices(array $services) Set the application's deferred services. 259 | */ 260 | class App extends Illuminate\Foundation\Application {} 261 | 262 | /** 263 | * @method static void call(string $command, array $parameters, Symfony\Component\Console\Output\OutputInterface $output) Run an Artisan console command by name. 264 | */ 265 | class Artisan extends Illuminate\Foundation\Artisan {} 266 | 267 | /** 268 | * @method static array make(string $value) Hash the given value. 269 | * @method static bool check(string $value, string $hashedValue, array $options) Check the given plain value against a hash. 270 | */ 271 | class Hash extends Illuminate\Hashing\BcryptHasher {} 272 | 273 | /** 274 | * @method static void instance() Return the Request instance. 275 | * @method static string root() Get the root URL for the application. 276 | * @method static string url() Get the URL (no query string) for the request. 277 | * @method static string fullUrl() Get the full URL for the request. 278 | * @method static string path() Get the current path info for the request. 279 | * @method static bool is(string $pattern) Determine if the current request URI matches a pattern. 280 | * @method static bool ajax() Determine if the request is the result of an AJAX call. 281 | * @method static bool secure() Determine if the request is over HTTPS. 282 | * @method static bool has(string|array $key) Determine if the request contains a given input item. 283 | * @method static array all() Get all of the input and files for the request. 284 | * @method static string input(string $key, mixed $default) Retrieve an input item from the request. 285 | * @method static array only(array $keys) Get a subset of the items from the input data. 286 | * @method static array except(array $keys) Get all of the input except for a specified array of items. 287 | * @method static string query(string $key, mixed $default) Retrieve a query string item from the request. 288 | * @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. 289 | * @method static void file(string $key, mixed $default) Retrieve a file from the request. 290 | * @method static bool hasFile(string $key) Determine if the uploaded data contains a file. 291 | * @method static string header(string $key, mixed $default) Retrieve a header from the request. 292 | * @method static string server(string $key, mixed $default) Retrieve a server variable from the request. 293 | * @method static string old(string $key, mixed $default) Retrieve an old input item. 294 | * @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. 295 | * @method static void flashOnly(dynamic string) Flash only some of the input to the session. 296 | * @method static void flashExcept(dynamic string) Flash only some of the input to the session. 297 | * @method static void flush() Flush all of the old input from the session. 298 | * @method static void merge(array $input) Merge new input into the current request's input array. 299 | * @method static void replace(array $input) Replace the input for the current request. 300 | * @method static object json() Get the JSON payload for the request. 301 | * @method static void getSessionStore() Get the Illuminate session store implementation. 302 | * @method static void setSessionStore(Illuminate\Session\Store $session) Set the Illuminate session store implementation. 303 | */ 304 | class Input extends Illuminate\Http\Request {} 305 | 306 | /** 307 | * @method static void instance() Return the Request instance. 308 | * @method static string root() Get the root URL for the application. 309 | * @method static string url() Get the URL (no query string) for the request. 310 | * @method static string fullUrl() Get the full URL for the request. 311 | * @method static string path() Get the current path info for the request. 312 | * @method static bool is(string $pattern) Determine if the current request URI matches a pattern. 313 | * @method static bool ajax() Determine if the request is the result of an AJAX call. 314 | * @method static bool secure() Determine if the request is over HTTPS. 315 | * @method static bool has(string|array $key) Determine if the request contains a given input item. 316 | * @method static array all() Get all of the input and files for the request. 317 | * @method static string input(string $key, mixed $default) Retrieve an input item from the request. 318 | * @method static array only(array $keys) Get a subset of the items from the input data. 319 | * @method static array except(array $keys) Get all of the input except for a specified array of items. 320 | * @method static string query(string $key, mixed $default) Retrieve a query string item from the request. 321 | * @method static string cookie(string $key, mixed $default) Retrieve a cookie from the request. 322 | * @method static void file(string $key, mixed $default) Retrieve a file from the request. 323 | * @method static bool hasFile(string $key) Determine if the uploaded data contains a file. 324 | * @method static string header(string $key, mixed $default) Retrieve a header from the request. 325 | * @method static string server(string $key, mixed $default) Retrieve a server variable from the request. 326 | * @method static string old(string $key, mixed $default) Retrieve an old input item. 327 | * @method static void flash(string $filter, array $keys) Flash the input for the current request to the session. 328 | * @method static void flashOnly(dynamic string) Flash only some of the input to the session. 329 | * @method static void flashExcept(dynamic string) Flash only some of the input to the session. 330 | * @method static void flush() Flush all of the old input from the session. 331 | * @method static void merge(array $input) Merge new input into the current request's input array. 332 | * @method static void replace(array $input) Replace the input for the current request. 333 | * @method static object json() Get the JSON payload for the request. 334 | * @method static void getSessionStore() Get the Illuminate session store implementation. 335 | * @method static void setSessionStore(Illuminate\Session\Store $session) Set the Illuminate session store implementation. 336 | */ 337 | class Request extends Illuminate\Http\Request {} 338 | 339 | /** 340 | * @var static void original The original content of the response. 341 | * @method static void withCookie(Symfony\Component\HttpFoundation\Cookie $cookie) Add a cookie to the response. 342 | * @method static void setContent(mixed $content) Set the content on the response. 343 | * @method static mixed getOriginalContent() Get the original response content. 344 | */ 345 | class Response extends Illuminate\Http\Response {} 346 | 347 | /** 348 | * @method static void useFiles(string $path, string $level) Register a file log handler. 349 | * @method static void useDailyFiles(string $path, int $days, string $level) Register a daily file log handler. 350 | * @method static void getMonolog() Get the underlying Monolog instance. 351 | */ 352 | class Log extends Illuminate\Log\Writer {} 353 | 354 | /** 355 | * @method static void alwaysFrom(string $address, string $name) Set the global from address and name. 356 | * @method static void send(string|array $view, array $data, Closure|string $callback) Send a new message using a view. 357 | * @method static void pretend(bool $value) Tell the mailer to not really send messages. 358 | * @method static void getViewEnvironment() Get the view environment instance. 359 | * @method static Swift_Mailer getSwiftMailer() Get the Swift Mailer instance. 360 | * @method static void setSwiftMailer(Swift_Mailer $swift) Set the Swift Mailer instance. 361 | * @method static void setLogger(Illuminate\Log\Writer $logger) Set the log writer instance. 362 | * @method static void setContainer(Illuminate\Container $container) Set the IoC container instance. 363 | */ 364 | class Mail extends Illuminate\Mail\Mailer {} 365 | 366 | /** 367 | * @method static void setupPaginationContext() Setup the pagination context (current and last page). 368 | * @method static void links() Get the pagination links view. 369 | * @method static string getUrl(int $page) Get a URL for a given page number. 370 | * @method static void addQuery(string $key, string $value) Add a query string value to the paginator. 371 | * @method static int getCurrentPage() Get the current page for the request. 372 | * @method static int getLastPage() Get the last page that should be available. 373 | * @method static array getItems() Get the items being paginated. 374 | * @method static int getTotal() Get the total number of items in the collection. 375 | * @method static ArrayIterator getIterator() Get an iterator for the items. 376 | * @method static int count() Get the number of items for the current page. 377 | * @method static bool offsetExists(mixed $key) Determine if the given item exists. 378 | * @method static mixed offsetGet(mixed $key) Get the item at the given offset. 379 | * @method static void offsetSet(mixed $key, mixed $value) Set the item at the given offset. 380 | * @method static void offsetUnset(mixed $key) Unset the item at the given key. 381 | */ 382 | class Paginator extends Illuminate\Pagination\Paginator {} 383 | 384 | /** 385 | * @method static void connect() Connect to the Redis database. 386 | * @method static mixed command(string $method, array $parameters) Run a command against the Redis database. 387 | * @method static string buildCommand(string $method, array $parameters) Build the Redis command syntax. 388 | * @method static mixed parseResponse(string $response) Parse the Redis database response. 389 | * @method static string fileRead(int $bytes) Read the specified number of bytes from the file resource. 390 | * @method static string fileGet(int $bytes) Get the specified number of bytes from a file line. 391 | * @method static void fileWrite(string $commnad) Write the given command to the file resource. 392 | * @method static resource getConnection() Get the Redis socket connection. 393 | */ 394 | class Redis extends Illuminate\Redis\Database {} 395 | 396 | /** 397 | * @method static void back(int $status, array $headers) Create a new redirect response to the previous location. 398 | * @method static void to(string $path, int $status, array $headers, bool $secure) Create a new redirect response to the given path. 399 | * @method static void secure(string $path, int $status, array $headers) Create a new redirect response to the given HTTPS path. 400 | * @method static void route(string $route, array $parameters, int $status, array $headers) Create a new redirect response to a named route. 401 | * @method static void action(string $action, array $parameters, int $status, array $headers) Create a new redirect response to a controller action. 402 | * @method static void setSession(Illuminate\Session\Store $session) Set the active session store. 403 | */ 404 | class Redirect extends Illuminate\Routing\Redirector {} 405 | 406 | /** 407 | * @method static void get(string $pattern, mixed $action) Add a new route to the collection. 408 | * @method static void post(string $pattern, mixed $action) Add a new route to the collection. 409 | * @method static void put(string $pattern, mixed $action) Add a new route to the collection. 410 | * @method static void patch(string $pattern, mixed $action) Add a new route to the collection. 411 | * @method static void delete(string $pattern, mixed $action) Add a new route to the collection. 412 | * @method static void match(string $method, string $pattern, mixed $action) Add a new route to the collection. 413 | * @method static void any(string $pattern, mixed $action) Add a new route to the collection. 414 | * @method static void controllers(array $controllers) Register an array of controllers with wildcard routing. 415 | * @method static void controller(string $controller, string $uri) Route a controller to a URI with wildcard routing. 416 | * @method static void resource(string $resource, string $controller, array $options) Route a resource to a controller. 417 | * @method static void group(array $attributes, Closure $callback) Create a route group with shared attributes. 418 | * @method static void makeReferences(Illuminate\Routing\Route $route, string $original) Replace any route back-references in a route. 419 | * @method static void dispatch(Symfony\Component\HttpFoundation\Request $request) Get the response for a given request. 420 | * @method static void before(Closure|string $callback) Register a "before" routing filter. 421 | * @method static void after(Closure|string $callback) Register an "after" routing filter. 422 | * @method static void close(Closure|string $callback) Register a "close" routing filter. 423 | * @method static void finish(Closure|string $callback) Register a "finish" routing filters. 424 | * @method static void addFilter(string $name, Closure|string $callback) Register a new filter with the application. 425 | * @method static Closure getFilter(string $name) Get a registered filter callback. 426 | * @method static void matchFilter(string $pattern, string|array $names) Tie a registered filter to a URI pattern. 427 | * @method static array findPatternFilters(Illuminate\Foundation\Request $request) Find the patterned filters matching a request. 428 | * @method static mixed callFinishFilter(Symfony\Component\HttpFoundation\Request $request, Symfony\Component\HttpFoundation\Response $response) Call the "finish" global filter. 429 | * @method static void prepare(mixed $value, Illuminate\Foundation\Request $request) Prepare the given value as a Response object. 430 | * @method static bool currentRouteNamed(string $name) Determine if the current route has a given name. 431 | * @method static bool currentRouteUses(string $action) Determine if the current route uses a given controller action. 432 | * @method static bool filtersEnabled() Determine if route filters are enabled. 433 | * @method static void enableFilters() Enable the running of filters. 434 | * @method static void disableFilters() Disable the runnning of all filters. 435 | * @method static void getRequest() Get the current request being dispatched. 436 | * @method static void getCurrentRoute() Get the current route being executed. 437 | * @method static void setCurrentRoute(Illuminate\Routing\Route $route) Set the current route on the router. 438 | * @method static void getRoutes() Retrieve the entire route collection. 439 | * @method static void setContainer(Illuminate\Container $container) Set the container instance on the router. 440 | */ 441 | class Route extends Illuminate\Routing\Router {} 442 | 443 | /** 444 | * @method static string to(string $path, array $parameters, bool $secure) Generate a absolute URL to the given path. 445 | * @method static string secure(string $path) Generate a secure, absolute URL to the given path. 446 | * @method static string asset(string $path, bool $secure) Generate a URL to an application asset. 447 | * @method static string secureAsset(string $path) Generate a URL to a secure asset. 448 | * @method static string route(string $name, array $parameters, bool $absolute) Get the URL to a named route. 449 | * @method static string action(string $action, array $parameters, bool $absolute) Get the URL to a controller action. 450 | * @method static bool isValidUrl(string $path) Determine if the given path is a valid URL. 451 | * @method static void getRequest() Get the request instance. 452 | * @method static void setRequest(Symfony\Component\HttpFoundation\Request $request) Set the current request instance. 453 | * @method static void getGenerator() Get the Symfony URL generator instance. 454 | * @method static void setGenerator(Symfony\Component\Routing\Generator\UrlGenerator $generator) Get the Symfony URL generator instance. 455 | */ 456 | class URL extends Illuminate\Routing\UrlGenerator {} 457 | 458 | /** 459 | * @method static void beforeFilter(string $filter, array $options) Register a new "before" filter on the controller. 460 | * @method static void afterFilter(string $filter, array $options) Register a new "after" filter on the controller. 461 | * @method static void callAction(Illuminate\Container $container, Illuminate\Routing\Router $router, string $method, array $parameters) Execute an action on the controller. 462 | * @method static array getFilters() Get the code registered filters. 463 | */ 464 | class Controller extends Illuminate\Routing\Controllers\Controller {} 465 | 466 | /** 467 | * @method static bool has(string $key, string $locale) Determine if a translation exists. 468 | * @method static string get(string $id, array $parameters, string $locale) Get the translation for a given key. 469 | * @method static string choice(string $id, int $number, array $parameters, string $locale) Get a translation according to an integer value. 470 | * @method static string trans(string $id, array $parameters, string $domain, string $locale) Get the translation for a given key. 471 | * @method static string transChoice(string $id, int $number, array $parameters, string $domain, string $locale) Get a translation according to an integer value. 472 | * @method static string load(string $group, string $namespace, string $locale) Load the specified language group. 473 | * @method static void addNamespace(string $namespace, string $hint) Add a new namespace to the loader. 474 | * @method static string getLocale() Get the default locale being used. 475 | * @method static void setLocale(string $locale) Set the default locale. 476 | * @method static void getSymfonyTranslator() Get the base Symfony translator instance. 477 | * @method static void setSymfonyTranslator(Symfony\Translation\Translator $trans) Get the base Symfony translator instance. 478 | */ 479 | class Lang extends Illuminate\Translation\Translator {} 480 | 481 | /** 482 | * @method static bool passes() Determine if the data passes the validation rules. 483 | * @method static bool fails() Determine if the data fails the validation rules. 484 | * @method static array getExtensions() Get the array of custom validator extensions. 485 | * @method static void addExtensions(array $extensions) Register an array of custom validator extensions. 486 | * @method static void addExtension(string $rule, Closure $extension) Register a custom validator extension. 487 | * @method static array getData() Get the data under validation. 488 | * @method static void setData(array $data) Set the data under validation. 489 | * @method static array getRules() Get the validation rules. 490 | * @method static array getFiles() Get the files under validation. 491 | * @method static void setFiles(array $files) Set the files under validation. 492 | * @method static void getPresenceVerifier() Get the Presence Verifier implementation. 493 | * @method static void setPresenceVerifier(Illuminate\Validation\PresenceVerifierInterface $presenceVerifier) Set the Presence Verifier implementation. 494 | * @method static void getTranslator() Get the Translator implementation. 495 | * @method static void setTranslator(Symfony\Component\Translation\TranslatorInterface $translator) Set the Translator implementation. 496 | * @method static void messages() Get the message container for the validator. 497 | * @method static void errors() An alternative more semantic shortcut to the message container. 498 | * @method static void getMessageBag() Get the messages for the instance. 499 | */ 500 | class Validator extends Illuminate\Validation\Factory {} 501 | 502 | /** 503 | * @method static void make(string $view, array $data) Get a evaluated view contents for the given view. 504 | * @method static string renderEach(string $view, array $data, string $iterator, string $empty) Get the rendered contents of a partial from a loop. 505 | * @method static void share(string $key, mixed $value) Add a piece of shared data to the environment. 506 | * @method static Closure composer(string $view, Closure|string $callback) Register a view composer event. 507 | * @method static void callComposer(Illuminate\View\View $view) Call the composer for a given view. 508 | * @method static void startSection(string $section, string $content) Start injecting content into a section. 509 | * @method static void inject(string $section, string $content) Inject inline content into a section. 510 | * @method static string yieldSection() Stop injecting content into a section and return its contents. 511 | * @method static string stopSection() Stop injecting content into a section. 512 | * @method static string yieldContent(string $section) Get the string contents of a section. 513 | * @method static void flushSections() Flush all of the section contents. 514 | * @method static void incrementRender() Increment the rendering counter. 515 | * @method static void decrementRender() Decrement the rendering counter. 516 | * @method static bool doneRendering() Check if there are no active render operations. 517 | * @method static void addLocation(string $location) Add a location to the array of view locations. 518 | * @method static void addNamespace(string $namespace, string|array $hints) Add a new namespace to the loader. 519 | * @method static void addExtension(string $extension, string $engine, Closure $resolver) Register a valid view extension and its engine. 520 | * @method static void getEngineResolver() Get the engine resolver instance. 521 | * @method static void getFinder() Get the view finder instance. 522 | * @method static void getDispatcher() Get the event dispatcher instance. 523 | * @method static void getContainer() Get the IoC container instance. 524 | * @method static void setContainer(Illuminate\Container $container) Set the IoC container instance. 525 | * @method static array getShared() Get all of the shared data for the environment. 526 | * @method static array getSections() Get the entire array of sections. 527 | */ 528 | class View extends Illuminate\View\Environment {} --------------------------------------------------------------------------------