Skip to content

Commit be4f16f

Browse files
committed
change database driver to sqlite
1 parent 4ca0acd commit be4f16f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.env.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ APP_DEBUG=true
44
APP_LOG_LEVEL=debug
55
APP_URL=http://localhost
66

7-
DB_CONNECTION=mysql
7+
DB_CONNECTION=sqlite
88
DB_HOST=127.0.0.1
99
DB_PORT=3306
10-
DB_DATABASE=homestead
10+
#DB_DATABASE=homestead
1111
DB_USERNAME=homestead
1212
DB_PASSWORD=secret
1313

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ init:
88
composer install
99
php artisan vendor:publish --tag=lfm_public
1010
php artisan vendor:publish --tag=lfm_config
11+
touch database/database.sqlite
12+
php artisan migrate
13+
php artisan db:seed
1114

1215
test:
1316
@echo "PSR-2 Testing"

database/seeds/DatabaseSeeder.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ class DatabaseSeeder extends Seeder
1111
*/
1212
public function run()
1313
{
14-
// $this->call(UsersTableSeeder::class);
14+
\App\User::create([
15+
'name' => 'root',
16+
'email' => 'root@example.com',
17+
'password' => \Hash::make('root')
18+
]);
1519
}
1620
}

0 commit comments

Comments
 (0)