@@ -26,6 +26,6 @@ |
||
26 | 26 | */ |
27 | 27 | public function rules() |
28 | 28 | { |
29 | - return ['password' => 'required|min:6|confirmed']; |
|
29 | + return [ 'password' => 'required|min:6|confirmed' ]; |
|
30 | 30 | } |
31 | 31 | } |
@@ -29,13 +29,13 @@ discard block |
||
29 | 29 | public function updateProfile(Requests\ProfileValidator $input) |
30 | 30 | { |
31 | 31 | // User information |
32 | - User::find(auth()->user()->id)->update($input->except(['_token', 'avatar'])); |
|
32 | + User::find(auth()->user()->id)->update($input->except([ '_token', 'avatar' ])); |
|
33 | 33 | |
34 | 34 | // User image information. |
35 | 35 | if (Input::file()) { |
36 | 36 | $image = Input::file('avatar'); |
37 | - $filename = time() . '.' . $image->getClientOriginalExtension(); |
|
38 | - $path = public_path('profilepics/' . $filename); |
|
37 | + $filename = time().'.'.$image->getClientOriginalExtension(); |
|
38 | + $path = public_path('profilepics/'.$filename); |
|
39 | 39 | |
40 | 40 | Image::make($image->getRealPath())->resize(80, 80)->save($path); |
41 | 41 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function updateSecurity(Requests\PasswordValidation $input) |
58 | 58 | { |
59 | - $data['password'] = bcrypt($input->password); |
|
59 | + $data[ 'password' ] = bcrypt($input->password); |
|
60 | 60 | |
61 | 61 | User::find(auth()->user()->id)->update($data); |
62 | 62 | session()->flash('message', 'Your password has been updated.'); |
@@ -19,5 +19,5 @@ |
||
19 | 19 | * |
20 | 20 | * @var array |
21 | 21 | */ |
22 | - protected $fillable = ['name']; |
|
22 | + protected $fillable = [ 'name' ]; |
|
23 | 23 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | */ |
16 | 16 | public function index() |
17 | 17 | { |
18 | - $data['roles'] = Roles::all(); |
|
18 | + $data[ 'roles' ] = Roles::all(); |
|
19 | 19 | return view('roles.index', $data); |
20 | 20 | } |
21 | 21 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function search(Request $request) |
29 | 29 | { |
30 | 30 | $term = $request->get('term'); |
31 | - $data['roles'] = Roles::where('name', 'LIKE', "$term")->get(); |
|
31 | + $data[ 'roles' ] = Roles::where('name', 'LIKE', "$term")->get(); |
|
32 | 32 | return view('roles.index', $data); |
33 | 33 | } |
34 | 34 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function show($id) |
42 | 42 | { |
43 | - $data['query'] = Roles::find($id); |
|
43 | + $data[ 'query' ] = Roles::find($id); |
|
44 | 44 | return view('', $data); |
45 | 45 | } |
46 | 46 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function edit($id) |
73 | 73 | { |
74 | - $data['query'] = Roles::find($id); |
|
74 | + $data[ 'query' ] = Roles::find($id); |
|
75 | 75 | return view('', $data) |
76 | 76 | } |
77 | 77 |