Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 20, 2024 via composer

illuminate/database 5.7.18

The Illuminate Database package.
Package summary
Share
4
issues
4
high severity
meta
4
1
license
13
MIT
Package created
5 Jun 2012
Version published
11 Dec 2018
Maintainers
1
Total deps
13
Direct deps
3
License
MIT

Issues

4

4 high severity issues

high
via: illuminate/container@v5.7.28 & others
via: illuminate/container@v5.7.28 & others
via: illuminate/container@v5.7.28 & others
via: illuminate/container@v5.7.28 & others
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
13 Packages, Including:
doctrine/inflector@1.4.4
illuminate/container@v5.7.28
illuminate/contracts@v5.7.28
illuminate/database@5.7.18
illuminate/support@v5.7.28
kylekatarnls/update-helper@1.2.1
nesbot/carbon@1.39.1
psr/container@1.1.2
psr/simple-cache@1.0.1
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/translation@v4.4.47
symfony/translation-contracts@v2.5.3
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

3
All Dependencies CSV
β“˜ This is a list of illuminate/database 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
illuminate/containerv5.7.28-MIT
prod
4
illuminate/contractsv5.7.28-MIT
prod
illuminate/supportv5.7.2871.45 kBMIT
prod
4

Visualizations

Frequently Asked Questions

What does illuminate/database do?

The Illuminate/Database is a comprehensive database toolkit for PHP. It provides an expressive query builder, an ActiveRecord-style ORM, and a schema builder. The illuminate/database package supports various databases, including MySQL, Postgres, SQL Server, and SQLite. The application notably serves as the database layer for the Laravel PHP framework.

How do you use illuminate/database?

You can incorporate Illuminate/Database in your PHP project by creating a new "Capsule" manager instance. This makes the package easy to configure for usage outside the Laravel framework.

To do this, you need to use the code:

use Illuminate\Database\Capsule\Manager as Capsule;

$capsule = new Capsule;

$capsule->addConnection([
    'driver' => 'mysql',
    'host' => 'localhost',
    'database' => 'database',
    'username' => 'root',
    'password' => 'password',
    'charset' => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix' => '',
]);

Once the Capsule instance has been registered, you can use commands such as:

$users = Capsule::table('users')->where('votes', '>', 100)->get();
$results = Capsule::select('select * from users where id = ?', [1]);
Capsule::schema()->create('users', function ($table) {
    $table->increments('id');
    $table->string('email')->unique();
    $table->timestamps();
});

To use the Eloquent ORM, you can interact with your data models as in:

class User extends Illuminate\Database\Eloquent\Model {}

$users = User::where('votes', '>', 1)->get();

Where are the illuminate/database docs?

For extended documentation on how to use the various database facilities provided by this library, consult the Laravel framework documentation available on the Laravel website at https://laravel.com/docs.