MySqlGrammar::compileForeign()

string compileForeign(Blueprint $blueprint, Fluent $command) Compile a foreign key command. Parameters Blueprint $blueprint Fluent $command Return Value string

RollbackCommand::setLaravel()

void setLaravel(Container $laravel) Set the Laravel application instance. Parameters Container $laravel Return Value void

RedisConnector::__construct()

void __construct(Database $redis, string|null $connection = null) Create a new Redis queue connector instance. Parameters Database $redis string|null $connection Return Value void

Testing

Testing Introduction Environment Creating & Running Tests Introduction Laravel is built with testing in mind. In fact, support for testing with PHPUnit is included out of the box and a phpunit.xml file is already setup for your application. The framework also ships with convenient helper methods that allow you to expressively test your applications. An ExampleTest.php file is provided in the tests directory. After installing a new Laravel application, simply run phpunit on the command lin

SortedMiddleware::take()

Collection take(int $limit) Take the first or last {$limit} items. Parameters int $limit Return Value Collection

BelongsToMany::getRelationCountQuery()

Builder getRelationCountQuery(Builder $query, Builder $parent) Add the constraints for a relationship count query. Parameters Builder $query Builder $parent Return Value Builder

BelongsToMany::getForeignKey()

string getForeignKey() Get the fully qualified foreign key for the relation. Return Value string

DatabaseMigrationRepository::getConnectionResolver()

ConnectionResolverInterface getConnectionResolver() Get the connection resolver instance. Return Value ConnectionResolverInterface

TaggedCache::tags()

TaggedCache tags(array|mixed $names) Begin executing a new tags operation if the store supports it. Parameters array|mixed $names Return Value TaggedCache Exceptions BadMethodCallException

Application::call()

mixed call(callable|string $callback, array $parameters = array(), string|null $defaultMethod = null) Call the given Closure / class@method and inject its dependencies. Parameters callable|string $callback array $parameters string|null $defaultMethod Return Value mixed