@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * Store a newly created resource in storage. |
36 | 36 | * |
37 | 37 | * @param \Illuminate\Http\Request $request |
38 | - * @return \Illuminate\Http\Response |
|
38 | + * @return \Illuminate\Http\RedirectResponse |
|
39 | 39 | */ |
40 | 40 | public function store(Request $request) |
41 | 41 | { |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * Remove the specified resource from storage. |
86 | 86 | * |
87 | 87 | * @param int $id |
88 | - * @return \Illuminate\Http\Response |
|
88 | + * @return \Illuminate\Http\RedirectResponse |
|
89 | 89 | */ |
90 | 90 | public function destroy($id) |
91 | 91 | { |
@@ -3,8 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | - |
|
7 | -use App\Http\Requests; |
|
8 | 6 | use App\Http\Controllers\Controller; |
9 | 7 | |
10 | 8 | class SettingsController extends Controller |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $injectionData = ['user' => $user, 'password' => $mail_password]; |
72 | 72 | |
73 | - Mail::send('emails.new_user', $injectionData, function ($m) use ($user, $mailbox) { |
|
73 | + Mail::send('emails.new_user', $injectionData, function($m) use ($user, $mailbox) { |
|
74 | 74 | $m->from($mailbox); |
75 | 75 | $m->to($user->email)->subject('Your user credentials!'); |
76 | 76 | }); |
@@ -261,11 +261,11 @@ discard block |
||
261 | 261 | public function update(Request $request) |
262 | 262 | { |
263 | 263 | // TODO: Add validation - Tjoosten |
264 | -<<<<<<< Updated upstream |
|
264 | +<< << << < Updated upstream |
|
265 | 265 | |
266 | -======= |
|
266 | +=== === = |
|
267 | 267 | |
268 | ->>>>>>> Stashed changes |
|
268 | +>> >> >> > Stashed changes |
|
269 | 269 | $user = User::findOrFail(auth()->user()->id); |
270 | 270 | $user->fname = $request->get('email'); |
271 | 271 | $user->name = $request->get('name'); |
@@ -275,8 +275,8 @@ discard block |
||
275 | 275 | |
276 | 276 | if (Input::file()) { |
277 | 277 | $image = Input::file('avatar'); |
278 | - $filename = time() . '.' . $image->getClientOriginalExtension(); |
|
279 | - $path = public_path('profilepics/' . $filename); |
|
278 | + $filename = time().'.'.$image->getClientOriginalExtension(); |
|
279 | + $path = public_path('profilepics/'.$filename); |
|
280 | 280 | |
281 | 281 | Image::make($image->getRealPath())->resize(200, 200)->save($path); |
282 | 282 | $user->image = $filename; |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | */ |
296 | 296 | public function destroy($id) |
297 | 297 | { |
298 | - if (! Auth::user()->is('Administrator')) { |
|
298 | + if (!Auth::user()->is('Administrator')) { |
|
299 | 299 | return Redirect::back(); |
300 | 300 | } |
301 | 301 |