File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ declare (strict_types=1 );
4+
35use Illuminate \Database \Migrations \Migration ;
46use Illuminate \Database \Schema \Blueprint ;
57use Illuminate \Support \Facades \Schema ;
68
7- return new class extends Migration
8- {
9+ return new class () extends Migration {
910 /**
1011 * Run the migrations.
1112 */
1213 public function up (): void
1314 {
14- Schema::create ('cache ' , function (Blueprint $ table ) {
15- $ table ->string ('key ' )->primary ();
15+ Schema::create ('cache ' , static function (Blueprint $ table ) {
16+ $ table ->string ('key ' )
17+ ->primary ();
1618 $ table ->mediumText ('value ' );
1719 $ table ->integer ('expiration ' );
1820 });
1921
20- Schema::create ('cache_locks ' , function (Blueprint $ table ) {
21- $ table ->string ('key ' )->primary ();
22+ Schema::create ('cache_locks ' , static function (Blueprint $ table ) {
23+ $ table ->string ('key ' )
24+ ->primary ();
2225 $ table ->string ('owner ' );
2326 $ table ->integer ('expiration ' );
2427 });
You can’t perform that action at this time.
0 commit comments