File tree Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Expand file tree Collapse file tree 2 files changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ public function reviveExpired($revivalTime = null )
34
34
{
35
35
if ($ this ->expire_at < Carbon::now ())
36
36
{
37
- if ($ this ->fireModelEvent ('revivingExpiry ' ) === false ) {
38
- return false ;
39
- }
40
-
41
37
$ revivalTime = $ revivalTime ? $ revivalTime : $ this ->getConfiguration ()['revival_time ' ];
42
38
43
39
if (!empty ($ revivalTime ))
@@ -46,8 +42,6 @@ public function reviveExpired($revivalTime = null )
46
42
47
43
$ result = $ this ->save ();
48
44
49
- $ this ->fireModelEvent ('revivedExpiry ' , false );
50
-
51
45
return $ result ;
52
46
}
53
47
}
@@ -82,29 +76,6 @@ public function hasExpired()
82
76
return false ;
83
77
}
84
78
85
- /**
86
- * Register a expiring model event with the dispatcher.
87
- *
88
- * @param \Closure|string $callback
89
- * @return void
90
- */
91
- public static function expiring ($ callback )
92
- {
93
- static ::registerModelEvent ('expiring ' , $ callback );
94
- }
95
-
96
- /**
97
- * Register a expired model event with the dispatcher.
98
- *
99
- * @param \Closure|string $callback
100
- * @return void
101
- */
102
- public static function expired ($ callback )
103
- {
104
- static ::registerModelEvent ('expired ' , $ callback );
105
- }
106
-
107
-
108
79
/**
109
80
* Get the name of the "deleted at" column.
110
81
*
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class ServiceProvider extends Provider
16
16
protected $ defer = false ;
17
17
18
18
/**
19
- * Bootstrap the application events .
19
+ * Bootstrap the package .
20
20
*
21
21
* @return void
22
22
*/
You can’t perform that action at this time.
0 commit comments