1 | <?php |
||
11 | class DatabaseManager |
||
12 | { |
||
13 | |||
14 | /** |
||
15 | * Migrate and seed the database. |
||
16 | * |
||
17 | * @return array |
||
18 | */ |
||
19 | public function migrateAndSeed() |
||
24 | |||
25 | /** |
||
26 | * Run the migration and call the seeder. |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | private function migrate() |
||
41 | |||
42 | /** |
||
43 | * Seed the database. |
||
44 | * |
||
45 | * @return array |
||
46 | */ |
||
47 | private function seed() |
||
58 | |||
59 | /** |
||
60 | * Return a formatted error messages. |
||
61 | * |
||
62 | * @param $message |
||
63 | * @param string $status |
||
64 | * @return array |
||
65 | */ |
||
66 | private function response($message, $status = 'danger') |
||
73 | |||
74 | /** |
||
75 | * check database type. If SQLite, then create the database file. |
||
76 | */ |
||
77 | private function sqlite() |
||
87 | } |
||
88 |