File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 21
21
use Illuminate \Support \ServiceProvider ;
22
22
use Illuminate \Support \Str ;
23
23
use Spatie \Health \Checks \Checks \CacheCheck ;
24
+ use Spatie \Health \Checks \Checks \DatabaseCheck ;
24
25
use Spatie \Health \Checks \Checks \DebugModeCheck ;
25
26
use Spatie \Health \Checks \Checks \EnvironmentCheck ;
26
27
use Spatie \Health \Checks \Checks \ScheduleCheck ;
27
- use Spatie \Health \Facades \Health ;
28
28
use Spatie \Health \Checks \Checks \UsedDiskSpaceCheck ;
29
- use Spatie \Health \Checks \ Checks \ DatabaseCheck ;
29
+ use Spatie \Health \Facades \ Health ;
30
30
31
31
class AppServiceProvider extends ServiceProvider
32
32
{
Original file line number Diff line number Diff line change 5
5
use Illuminate \Support \Facades \Schema ;
6
6
use Spatie \Health \ResultStores \EloquentHealthResultStore ;
7
7
8
- return new class extends Migration
9
- {
8
+ return new class extends Migration {
10
9
public function up ()
11
10
{
12
11
$ tableName = EloquentHealthResultStore::getHistoryItemInstance ()->getTable ();
13
-
12
+
14
13
Schema::create ($ tableName , function (Blueprint $ table ) {
15
14
$ table ->id ();
16
15
@@ -25,8 +24,8 @@ public function up()
25
24
26
25
$ table ->timestamps ();
27
26
});
28
-
29
- Schema::table ($ tableName , function (Blueprint $ table ) {
27
+
28
+ Schema::table ($ tableName , function (Blueprint $ table ) {
30
29
$ table ->index ('created_at ' );
31
30
$ table ->index ('batch ' );
32
31
});
You can’t perform that action at this time.
0 commit comments