@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public function handle() |
30 | 30 | { |
31 | - $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL); |
|
31 | + $this->comment(PHP_EOL . Inspiring::quote() . PHP_EOL); |
|
32 | 32 | } |
33 | 33 | } |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function __construct() |
39 | 39 | { |
40 | - $this->middleware('guest', ['except' => 'logout']); |
|
40 | + $this->middleware('guest', [ '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,13 +29,13 @@ |
||
29 | 29 | $emailToSendTo = $request->input('email'); |
30 | 30 | $body = $request->input('message'); |
31 | 31 | |
32 | - Mail::send('emails.contact', ['body' => $body], function ($message) use ($name,$emailToSendTo) { |
|
32 | + Mail::send('emails.contact', [ 'body' => $body ], function($message) use ($name, $emailToSendTo) { |
|
33 | 33 | $message->from('[email protected]', "From: {$name}"); |
34 | 34 | |
35 | 35 | $message->to($emailToSendTo)->subject("Message From Laravel Hackathon Starter Contact Form"); |
36 | 36 | }); |
37 | 37 | |
38 | - return redirect()->route('contact')->with('info','Your Message has been dispatched successfully'); |
|
38 | + return redirect()->route('contact')->with('info', 'Your Message has been dispatched successfully'); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | } |
@@ -23,33 +23,33 @@ discard block |
||
23 | 23 | | |
24 | 24 | */ |
25 | 25 | |
26 | -Route::group(['middleware' => ['web']], function () { |
|
26 | +Route::group([ 'middleware' => [ 'web' ] ], function() { |
|
27 | 27 | |
28 | - Route::get('/', function () { |
|
28 | + Route::get('/', function() { |
|
29 | 29 | return view('welcome'); |
30 | 30 | }); |
31 | 31 | |
32 | - Route::get('/api', function () { |
|
32 | + Route::get('/api', function() { |
|
33 | 33 | return view('apidashboard'); |
34 | 34 | }); |
35 | 35 | |
36 | 36 | Route::get('/login', [ |
37 | 37 | 'uses' => 'Auth\AuthController@getLogin', |
38 | 38 | 'as' => 'auth.login', |
39 | - 'middleware' => ['guest'] |
|
39 | + 'middleware' => [ 'guest' ] |
|
40 | 40 | ]); |
41 | 41 | |
42 | 42 | |
43 | 43 | Route::post('/login', [ |
44 | 44 | 'uses' => 'Auth\AuthController@postLogin', |
45 | - 'middleware' => ['guest'] |
|
45 | + 'middleware' => [ 'guest' ] |
|
46 | 46 | ]); |
47 | 47 | |
48 | 48 | |
49 | 49 | Route::get('/signup', [ |
50 | 50 | 'uses' => 'Auth\AuthController@getRegister', |
51 | 51 | 'as' => 'auth.register', |
52 | - 'middleware' => ['guest'] |
|
52 | + 'middleware' => [ 'guest' ] |
|
53 | 53 | ]); |
54 | 54 | |
55 | 55 | Route::get('auth/logout', [ |
@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | |
60 | 60 | Route::post('/signup', [ |
61 | 61 | 'uses' => 'Auth\AuthController@postRegister', |
62 | - 'middleware' => ['guest'] |
|
62 | + 'middleware' => [ 'guest' ] |
|
63 | 63 | ]); |
64 | 64 | |
65 | - Route::get('/contact', function () { |
|
65 | + Route::get('/contact', function() { |
|
66 | 66 | return view('contact'); |
67 | 67 | }); |
68 | 68 |
@@ -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 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | 'password', 'remember_token', |
25 | 25 | ]; |
26 | 26 | |
27 | - public function getAvatarUrl(){ |
|
27 | + public function getAvatarUrl() { |
|
28 | 28 | return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($this->email))) . "?d=mm&s=40"; |
29 | 29 | } |
30 | 30 | } |