These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Yajra\Auditable; |
||
4 | |||
5 | use Illuminate\Database\Schema\Blueprint; |
||
6 | use Illuminate\Support\ServiceProvider; |
||
7 | |||
8 | class AuditableServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Register the service provider. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function register() |
||
16 | { |
||
17 | Blueprint::macro('auditable', function() { |
||
18 | $this->unsignedBigInteger('created_by')->nullable()->index(); |
||
0 ignored issues
–
show
|
|||
19 | $this->unsignedBigInteger('updated_by')->nullable()->index(); |
||
0 ignored issues
–
show
The method
unsignedBigInteger() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
20 | }); |
||
21 | |||
22 | Blueprint::macro('dropAuditable', function() { |
||
23 | $this->dropColumn(['created_by', 'updated_by']); |
||
0 ignored issues
–
show
The method
dropColumn() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
24 | }); |
||
25 | |||
26 | Blueprint::macro('auditableWithDeletes', function() { |
||
27 | $this->unsignedBigInteger('created_by')->nullable()->index(); |
||
0 ignored issues
–
show
The method
unsignedBigInteger() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
28 | $this->unsignedBigInteger('updated_by')->nullable()->index(); |
||
0 ignored issues
–
show
The method
unsignedBigInteger() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
29 | $this->unsignedBigInteger('deleted_by')->nullable()->index(); |
||
0 ignored issues
–
show
The method
unsignedBigInteger() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
30 | }); |
||
31 | |||
32 | Blueprint::macro('dropAuditableWithDeletes', function() { |
||
33 | $this->dropColumn(['created_by', 'updated_by', 'deleted_by']); |
||
0 ignored issues
–
show
The method
dropColumn() does not seem to exist on object<Yajra\Auditable\AuditableServiceProvider> .
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed.
Loading history...
|
|||
34 | }); |
||
35 | } |
||
36 | } |
||
37 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.