Subversion-Projekte lars-tiefland.laravel_shop

Revision

Zur aktuellen Revision | Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Support\Facades;
4
 
5
/**
6
 * @method static void defaultStringLength(int $length)
7
 * @method static void defaultMorphKeyType(string $type)
8
 * @method static void morphUsingUuids()
9
 * @method static void morphUsingUlids()
10
 * @method static void useNativeSchemaOperationsIfPossible(bool $value = true)
11
 * @method static bool createDatabase(string $name)
12
 * @method static bool dropDatabaseIfExists(string $name)
13
 * @method static bool hasTable(string $table)
14
 * @method static bool hasColumn(string $table, string $column)
15
 * @method static bool hasColumns(string $table, array $columns)
16
 * @method static void whenTableHasColumn(string $table, string $column, \Closure $callback)
17
 * @method static void whenTableDoesntHaveColumn(string $table, string $column, \Closure $callback)
18
 * @method static string getColumnType(string $table, string $column)
19
 * @method static array getColumnListing(string $table)
20
 * @method static void table(string $table, \Closure $callback)
21
 * @method static void create(string $table, \Closure $callback)
22
 * @method static void drop(string $table)
23
 * @method static void dropIfExists(string $table)
24
 * @method static void dropColumns(string $table, string|array $columns)
25
 * @method static void dropAllTables()
26
 * @method static void dropAllViews()
27
 * @method static void dropAllTypes()
28
 * @method static void getAllTables()
29
 * @method static void rename(string $from, string $to)
30
 * @method static bool enableForeignKeyConstraints()
31
 * @method static bool disableForeignKeyConstraints()
32
 * @method static \Illuminate\Database\Connection getConnection()
33
 * @method static \Illuminate\Database\Schema\Builder setConnection(\Illuminate\Database\Connection $connection)
34
 * @method static void blueprintResolver(\Closure $resolver)
35
 *
36
 * @see \Illuminate\Database\Schema\Builder
37
 */
38
class Schema extends Facade
39
{
40
    /**
41
     * Indicates if the resolved facade should be cached.
42
     *
43
     * @var bool
44
     */
45
    protected static $cached = false;
46
 
47
    /**
48
     * Get a schema builder instance for a connection.
49
     *
50
     * @param  string|null  $name
51
     * @return \Illuminate\Database\Schema\Builder
52
     */
53
    public static function connection($name)
54
    {
55
        return static::$app['db']->connection($name)->getSchemaBuilder();
56
    }
57
 
58
    /**
59
     * Get the registered name of the component.
60
     *
61
     * @return string
62
     */
63
    protected static function getFacadeAccessor()
64
    {
65
        return 'db.schema';
66
    }
67
}