| 1 | <?php |
||
| 8 | abstract class Sqlite extends Model |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * $tableCreated. |
||
| 12 | * |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected static $tableCreated = []; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get the table associated with the model. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | 30 | public function getTable() |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Resolve a connection instance. |
||
| 29 | * |
||
| 30 | * @param string|null $connection |
||
| 31 | * @return \Illuminate\Database\Connection |
||
| 32 | */ |
||
| 33 | 30 | public static function resolveConnection($connection = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | * |
||
| 41 | * @param string $table |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | 30 | protected function createTable($table) |
|
| 60 | |||
| 61 | /** |
||
| 62 | * createSchema. |
||
| 63 | * |
||
| 64 | * @param Blueprint $table |
||
| 65 | * @return void |
||
| 66 | */ |
||
| 67 | abstract protected function createSchema(Blueprint $table); |
||
| 68 | } |
||
| 69 |