@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function __construct() |
| 39 | 39 | { |
| 40 | - $this->middleware($this->guestMiddleware(), ['except' => 'logout']); |
|
| 40 | + $this->middleware($this->guestMiddleware(), [ 'except' => 'logout' ]); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | protected function create(array $data) |
| 65 | 65 | { |
| 66 | 66 | return User::create([ |
| 67 | - 'name' => $data['name'], |
|
| 68 | - 'email' => $data['email'], |
|
| 69 | - 'password' => bcrypt($data['password']), |
|
| 67 | + 'name' => $data[ 'name' ], |
|
| 68 | + 'email' => $data[ 'email' ], |
|
| 69 | + 'password' => bcrypt($data[ 'password' ]), |
|
| 70 | 70 | ]); |
| 71 | 71 | } |
| 72 | 72 | } |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | // Here template names is hardcoded, but here is easy to edit them, then go to templates and change variables there |
| 31 | 31 | |
| 32 | - switch ($view->getName()){ |
|
| 32 | + switch ($view->getName()) { |
|
| 33 | 33 | case "partials.banners.small": |
| 34 | 34 | return $view->with('banners', $this->banners->getSmallAdBlocks(2)); |
| 35 | 35 | break; |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | Route::get('/', [ |
| 17 | 17 | 'as' => 'home', |
| 18 | - 'uses' => function () { |
|
| 18 | + 'uses' => function() { |
|
| 19 | 19 | return view('home'); |
| 20 | 20 | } |
| 21 | 21 | ]); |