@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $mailbox = env('MAIL_USERNAME'); |
59 | 59 | $mail_password = $request->get('password'); |
60 | 60 | \Session::flash('message', "New employee has been added to the application"); |
61 | - \Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function ($m) use ($user, $mailbox) { |
|
61 | + \Mail::send('emails.new_user', ['user' => $user, 'password' => $mail_password], function($m) use ($user, $mailbox) { |
|
62 | 62 | $m->from($mailbox); |
63 | 63 | $m->to($user->email)->subject('Your user credentials!'); |
64 | 64 | }); |
@@ -101,11 +101,11 @@ discard block |
||
101 | 101 | foreach ($request->get('permissions') as $permission) { |
102 | 102 | $role->givePermissionTo($permission); |
103 | 103 | } |
104 | - if($assign_role) |
|
104 | + if ($assign_role) |
|
105 | 105 | { |
106 | 106 | \Session::flash('message', 'New user role has been created'); |
107 | 107 | return redirect('staff/policies'); |
108 | - }else { |
|
108 | + } else { |
|
109 | 109 | return "Mislukt"; |
110 | 110 | } |
111 | 111 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function map(Router $router) |
39 | 39 | { |
40 | - $router->group(['namespace' => $this->namespace], function ($router) { |
|
40 | + $router->group(['namespace' => $this->namespace], function($router) { |
|
41 | 41 | require app_path('Http/routes.php'); |
42 | 42 | }); |
43 | 43 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | $mailbox = env('MAIL_USERNAME'); |
70 | 70 | |
71 | 71 | \Session::flash('message', "Information has been saved to the database"); |
72 | - \Mail::send('emails.new_sick', ['data' => $data], function ($m) use ($mailbox, $subject) { |
|
72 | + \Mail::send('emails.new_sick', ['data' => $data], function($m) use ($mailbox, $subject) { |
|
73 | 73 | $m->from($mailbox); |
74 | 74 | $m->to("[email protected]")->subject("$subject"); |
75 | 75 | }); |