Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Details | Vergleich mit vorheriger | 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()
150 lars 32
 * @method static mixed withoutForeignKeyConstraints(\Closure $callback)
148 lars 33
 * @method static \Illuminate\Database\Connection getConnection()
34
 * @method static \Illuminate\Database\Schema\Builder setConnection(\Illuminate\Database\Connection $connection)
35
 * @method static void blueprintResolver(\Closure $resolver)
36
 *
37
 * @see \Illuminate\Database\Schema\Builder
38
 */
39
class Schema extends Facade
40
{
41
    /**
42
     * Indicates if the resolved facade should be cached.
43
     *
44
     * @var bool
45
     */
46
    protected static $cached = false;
47
 
48
    /**
49
     * Get a schema builder instance for a connection.
50
     *
51
     * @param  string|null  $name
52
     * @return \Illuminate\Database\Schema\Builder
53
     */
54
    public static function connection($name)
55
    {
56
        return static::$app['db']->connection($name)->getSchemaBuilder();
57
    }
58
 
59
    /**
60
     * Get the registered name of the component.
61
     *
62
     * @return string
63
     */
64
    protected static function getFacadeAccessor()
65
    {
66
        return 'db.schema';
67
    }
68
}