@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | - |
|
7 | 5 | class DashboardController extends Controller |
8 | 6 | { |
9 | 7 | /** |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use Illuminate\Http\Request; |
|
6 | - |
|
7 | 5 | class HomeController extends Controller |
8 | 6 | { |
9 | 7 | /** |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Illuminate\Bus\Queueable; |
6 | 6 | use Illuminate\Mail\Mailable; |
7 | 7 | use Illuminate\Queue\SerializesModels; |
8 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
9 | 8 | |
10 | 9 | class OrderShipped extends Mailable |
11 | 10 | { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Bus\Queueable; |
6 | 6 | use Illuminate\Notifications\Notification; |
7 | -use Illuminate\Contracts\Queue\ShouldQueue; |
|
8 | 7 | use Illuminate\Notifications\Messages\NexmoMessage; |
9 | 8 | |
10 | 9 | class InvoicePaid extends Notification |
@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function via($notifiable) |
31 | 31 | { |
32 | - return ['nexmo']; |
|
32 | + return [ 'nexmo' ]; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -63,9 +63,9 @@ |
||
63 | 63 | protected function create(array $data) |
64 | 64 | { |
65 | 65 | return User::create([ |
66 | - 'name' => $data['name'], |
|
67 | - 'email' => $data['email'], |
|
68 | - 'password' => bcrypt($data['password']), |
|
66 | + 'name' => $data[ 'name' ], |
|
67 | + 'email' => $data[ 'email' ], |
|
68 | + 'password' => bcrypt($data[ 'password' ]), |
|
69 | 69 | ]); |
70 | 70 | } |
71 | 71 | } |
@@ -34,6 +34,6 @@ |
||
34 | 34 | */ |
35 | 35 | public function __construct() |
36 | 36 | { |
37 | - $this->middleware('guest', ['except' => 'logout']); |
|
37 | + $this->middleware('guest', [ 'except' => 'logout' ]); |
|
38 | 38 | } |
39 | 39 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) |
58 | 58 | { |
59 | 59 | if ($request->expectsJson()) { |
60 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | return redirect()->guest(route('login')); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | Schema::defaultStringLength(191); |
18 | 18 | |
19 | 19 | // Create {{ $view_name }} provider in blade templates |
20 | - view()->composer('*', function($view){ |
|
20 | + view()->composer('*', function($view) { |
|
21 | 21 | $view_name = str_replace('.', '-', $view->getName()); |
22 | 22 | view()->share('view_name', $view_name); |
23 | 23 | }); |