File tree 3 files changed +39
-0
lines changed
3 files changed +39
-0
lines changed Original file line number Diff line number Diff line change 14
14
'filename ' => '_ide_helper ' ,
15
15
'format ' => 'php ' ,
16
16
17
+ /*
18
+ |--------------------------------------------------------------------------
19
+ | Fluent helpers
20
+ |--------------------------------------------------------------------------
21
+ |
22
+ | Set to true to generate commonly used Fluent methods
23
+ |
24
+ */
25
+
26
+ 'include_fluent ' => false ,
27
+
17
28
/*
18
29
|--------------------------------------------------------------------------
19
30
| Helper files to include
Original file line number Diff line number Diff line change @@ -37,3 +37,30 @@ public static function <?= $method->getName() ?>(<?= $method->getParamsWithDefau
37
37
}
38
38
39
39
<?php endforeach ; ?>
40
+
41
+
42
+ <?php if ($ include_fluent ): ?>
43
+ namespace Illuminate\Support {
44
+ /**
45
+ * Methods commonly used in migrations
46
+ *
47
+ * @method Fluent after(string $column) Add the after modifier
48
+ * @method Fluent charset(string $charset) Add the character set modifier
49
+ * @method Fluent collation(string $collation) Add the collation modifier
50
+ * @method Fluent comment(string $comment) Add comment
51
+ * @method Fluent default(mixed $value) Add the default modifier
52
+ * @method Fluent first() Select first row
53
+ * @method Fluent index(string $name = null) Add the in dex clause
54
+ * @method Fluent on(string $column) `on` of a foreign key
55
+ * @method Fluent onDelete(string $action) `on delete` of a foreign key
56
+ * @method Fluent onUpdate(string $action) `on update` of a foreign key
57
+ * @method Fluent primary() Add the primary key modifier
58
+ * @method Fluent references(string $table) `references` of a foreign key
59
+ * @method Fluent nullable() Add the nullable modifier
60
+ * @method Fluent unique(string $name = null) Add unique index clause
61
+ * @method Fluent unsigned() Add the unsigned modifier
62
+ * @method Fluent useCurrent() Add the default timestamp value
63
+ */
64
+ class Fluent {}
65
+ }
66
+ <?php endif ?>
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public function generatePhpHelper()
84
84
->with ('namespaces ' , $ this ->getNamespaces ())
85
85
->with ('helpers ' , $ this ->helpers )
86
86
->with ('version ' , $ app ->version ())
87
+ ->with ('include_fluent ' , $ this ->config ->get ('ide-helper.include_fluent ' , false ))
87
88
->render ();
88
89
}
89
90
You can’t perform that action at this time.
0 commit comments