File tree 3 files changed +5
-9
lines changed
3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Abordage \LastModified \Facades ;
4
4
5
- use Illuminate \Support \Carbon ;
6
5
use Illuminate \Support \Facades \Facade ;
7
6
8
7
/**
9
- * @method static void set(Carbon $updated_at)
10
- * @method static Carbon|null get()
8
+ * @method static void set(\Illuminate\Support\ Carbon $updated_at)
9
+ * @method static \Illuminate\Support\ Carbon|null get()
11
10
*
12
11
* @see \Abordage\LastModified\LastModified
13
12
*/
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ class LastModified
8
8
{
9
9
private ?Carbon $ updatedAt = null ;
10
10
11
- public function set (?Carbon $ updated_at ): void
11
+ public function set (?Carbon $ updatedAt ): void
12
12
{
13
- $ this ->updatedAt = $ updated_at ;
13
+ $ this ->updatedAt = $ updatedAt ;
14
14
}
15
15
16
16
public function get (): ?Carbon
Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ public function boot(): void
24
24
public function register (): void
25
25
{
26
26
$ this ->mergeConfigFrom (__DIR__ . '/../config/last-modified.php ' , 'last-modified ' );
27
-
28
- $ this ->app ->singleton ('laravel-last-modified ' , function () {
29
- return new LastModified ();
30
- });
27
+ $ this ->app ->singleton ('laravel-last-modified ' , fn () => new LastModified ());
31
28
}
32
29
}
You can’t perform that action at this time.
0 commit comments