9
9
use GuzzleHttp \Client ;
10
10
use Illuminate \Support \Facades \Auth ;
11
11
use Illuminate \Support \Facades \Cache ;
12
- use Illuminate \Support \Facades \Input ;
12
+ use Illuminate \Support \Facades \Request ;
13
13
14
14
class SettingController {
15
15
@@ -83,13 +83,13 @@ public function getVersion()
83
83
public function updateSettings ()
84
84
{
85
85
Cache::flush ();
86
-
86
+
87
87
$ this ->setting ->first ()->update ([
88
- 'show_genre ' => Input:: get ('genre ' ),
89
- 'show_date ' => Input:: get ('date ' ),
90
- 'episode_spoiler_protection ' => Input:: get ('spoiler ' ),
91
- 'show_watchlist_everywhere ' => Input:: get ('watchlist ' ),
92
- 'show_ratings ' => Input:: get ('ratings ' ),
88
+ 'show_genre ' => Request:: input ('genre ' ),
89
+ 'show_date ' => Request:: input ('date ' ),
90
+ 'episode_spoiler_protection ' => Request:: input ('spoiler ' ),
91
+ 'show_watchlist_everywhere ' => Request:: input ('watchlist ' ),
92
+ 'show_ratings ' => Request:: input ('ratings ' ),
93
93
]);
94
94
}
95
95
@@ -99,28 +99,28 @@ public function updateSettings()
99
99
public function updateRefresh ()
100
100
{
101
101
$ this ->setting ->first ()->update ([
102
- 'refresh_automatically ' => Input:: get ('refresh ' ),
102
+ 'refresh_automatically ' => Request:: input ('refresh ' ),
103
103
]);
104
104
}
105
-
105
+
106
106
/**
107
107
* Update reminders mail.
108
108
*/
109
109
public function updateRemindersSendTo ()
110
110
{
111
111
$ this ->setting ->first ()->update ([
112
- 'reminders_send_to ' => Input:: get ('reminders_send_to ' ),
112
+ 'reminders_send_to ' => Request:: input ('reminders_send_to ' ),
113
113
]);
114
114
}
115
-
115
+
116
116
/**
117
117
* Update reminder options.
118
118
*/
119
119
public function updateReminderOptions ()
120
120
{
121
121
$ this ->setting ->first ()->update ([
122
- 'daily_reminder ' => Input:: get ('daily ' ),
123
- 'weekly_reminder ' => Input:: get ('weekly ' ),
122
+ 'daily_reminder ' => Request:: input ('daily ' ),
123
+ 'weekly_reminder ' => Request:: input ('weekly ' ),
124
124
]);
125
125
}
126
126
}
0 commit comments