Skip to content

Commit 3be9833

Browse files
committed
update
1 parent 918c84c commit 3be9833

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

config/database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
|
2727
*/
2828

29-
'default' => env('DB_CONNECTION', 'mysql'),
29+
'default' => env('DB_CONNECTION', 'sqlite'),
3030

3131
/*
3232
|--------------------------------------------------------------------------

database/migrations/2016_03_21_083139_create_posts_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up()
1818
$table->string('title');
1919
$table->text('description');
2020
$table->longText('content');
21-
$table->string('image');
21+
$table->string('image')->nullable();
2222
$table->boolean('visible')->default(1);
2323
$table->boolean('allow_comment')->default(1);
2424
$table->timestamps();

database/migrations/2016_04_12_062142_create_admins_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function up()
1919
$table->string('email')->unique();
2020
$table->string('password');
2121
$table->string('image');
22-
$table->string('login_token');
22+
$table->string('login_token')->nullable();
2323
$table->boolean('is_super')->default(0);
2424
$table->rememberToken();
2525
$table->timestamps();

resources/admin/bootstrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ authConfig(Vue);
3838

3939
router.start(App, '#app');
4040

41-
window.router = router
41+
window.router = router;

resources/admin/directives/select2.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@ import '../assets/js/plugins/select2/select2.min';
44
export default {
55
twoWay: true,
66
priority: 1000,
7-
87
params: ['options'],
9-
108
bind: function () {
11-
var self = this
9+
var self = this;
1210
$(this.el)
1311
.select2({
1412
data: this.params.options
1513
})
1614
.on('change', function () {
17-
self.set(this.value)
18-
})
15+
self.set(this.value);
16+
});
1917
},
2018
update: function (value) {
21-
$(this.el).val(value).trigger('change')
19+
$(this.el).val(value).trigger('change');
2220
},
2321
unbind: function () {
24-
$(this.el).off().select2('destroy')
22+
$(this.el).off().select2('destroy');
2523
}
2624
}

0 commit comments

Comments
 (0)