Database::command()

mixed command(string $method, array $parameters = array()) Run a command against the Redis database. Parameters string $method array $parameters Return Value mixed

Database::command()

mixed command(string $method, array $parameters = array()) Run a command against the Redis database. Parameters string $method array $parameters Return Value mixed

Database: Seeding

Database: Seeding Introduction Writing Seeders Using Model Factories Calling Additional Seeders Running Seeders Introduction Laravel includes a simple method of seeding your database with test data using seed classes. All seed classes are stored in the database/seeds directory. Seed classes may have any name you wish, but probably should follow some sensible convention, such as UsersTableSeeder, etc. By default, a DatabaseSeeder class is defined for you. From this class, you may use the cal

Database: Query Builder

Database: Query Builder Introduction Retrieving Results Chunking Results Aggregates Selects Raw Expressions Joins Unions Where Clauses Parameter Grouping Where Exists Clauses JSON Where Clauses Ordering, Grouping, Limit, & Offset Conditional Clauses Inserts Updates Updating JSON Columns Increment & Decrement Deletes Pessimistic Locking Introduction Laravel's database query builder provides a convenient, fluent interface to creating and running database queries. It can be used to

Database: Migrations

Database: Migrations Introduction Generating Migrations Migration Structure Running Migrations Rolling Back Migrations Tables Creating Tables Renaming / Dropping Tables Columns Creating Columns Column Modifiers Modifying Columns Dropping Columns Indexes Creating Indexes Dropping Indexes Foreign Key Constraints Introduction Migrations are like version control for your database, allowing your team to easily modify and share the application's database schema. Migrations are typically pai

Database: Getting Started

Database: Getting Started Introduction Configuration Read & Write Connections Using Multiple Database Connections Running Raw SQL Queries Listening For Query Events Database Transactions Introduction Laravel makes interacting with databases extremely simple across a variety of database backends using either raw SQL, the fluent query builder, and the Eloquent ORM. Currently, Laravel supports four databases: MySQL Postgres SQLite SQL Server

Database Testing

Database Testing Introduction Resetting The Database After Each Test Using Migrations Using Transactions Writing Factories Factory States Using Factories Creating Models Persisting Models Relationships Introduction Laravel provides a variety of helpful tools to make it easier to test your database driven applications. First, you may use the seeInDatabase helper to assert that data exists in the database matching a given set of criteria. For example, if you would like to verify that ther

Database

Database class Database implements Database (View source) Methods void __construct(array $servers = array()) Create a new Redis connection instance. ClientInterface|null connection(string $name = 'default') Get a specific Redis connection instance. mixed command(string $method, array $parameters = array()) Run a command against the Redis database. void subscribe(array|string $channels, Closure $callback, string $connection = null, string $method = 'subscribe') Subscribe to

Database

Database interface Database (View source) Methods mixed command(string $method, array $parameters = array()) Run a command against the Redis database.

Database

Illuminate\Database Namespaces Illuminate\Database\CapsuleIlluminate\Database\ConnectorsIlluminate\Database\ConsoleIlluminate\Database\EloquentIlluminate\Database\MigrationsIlluminate\Database\QueryIlluminate\Database\Schema Classes Connection ConnectionResolver DatabaseManager DatabaseServiceProvider Grammar MigrationServiceProvider MySqlConnection PostgresConnection QueryException SQLiteConnection SeedServiceProvider Seeder SqlServerConnection