@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('users', function (Blueprint $table) { |
|
| 14 | + Schema::create('users', function(Blueprint $table) { |
|
| 15 | 15 | $table->increments('id'); |
| 16 | 16 | $table->string('name'); |
| 17 | 17 | $table->string('email')->unique(); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | public function up() |
| 13 | 13 | { |
| 14 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 14 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 15 | 15 | $table->string('email')->index(); |
| 16 | 16 | $table->string('token'); |
| 17 | 17 | $table->timestamp('created_at')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -$factory->define(App\Models\User::class, function (Faker $faker) { |
|
| 16 | +$factory->define(App\Models\User::class, function(Faker $faker) { |
|
| 17 | 17 | static $password; |
| 18 | 18 | |
| 19 | 19 | return [ |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Broadcast::channel('App.User.{id}', function ($user, $id) { |
|
| 14 | +Broadcast::channel('App.User.{id}', function($user, $id) { |
|
| 15 | 15 | return (int) $user->id === (int) $id; |
| 16 | 16 | }); |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | $api = app(Router::class); |
| 18 | 18 | |
| 19 | 19 | // Create a Dingo Version Group |
| 20 | -$api->version('v1', ['middleware' => 'api'], function ($api) { |
|
| 21 | - $api->group(['prefix' => 'auth'], function ($api) { |
|
| 20 | +$api->version('v1', [ 'middleware' => 'api' ], function($api) { |
|
| 21 | + $api->group([ 'prefix' => 'auth' ], function($api) { |
|
| 22 | 22 | $api->post('register', [ |
| 23 | 23 | 'as' => 'register', |
| 24 | 24 | 'uses' => 'App\\Api\\V1\\Controllers\\RegisterController@register', |
@@ -42,14 +42,14 @@ discard block |
||
| 42 | 42 | $api->post('reset', 'App\\Api\\V1\\Controllers\\ResetPasswordController@resetPassword'); |
| 43 | 43 | $api->get('reset/{token}', [ |
| 44 | 44 | 'as' => 'password.reset', |
| 45 | - function () { |
|
| 45 | + function() { |
|
| 46 | 46 | }, |
| 47 | 47 | ]); |
| 48 | 48 | }); |
| 49 | 49 | |
| 50 | 50 | // Protected routes |
| 51 | - $api->group(['middleware' => 'auth:api'], function ($api) { |
|
| 52 | - $api->get('protected', function () { |
|
| 51 | + $api->group([ 'middleware' => 'auth:api' ], function($api) { |
|
| 52 | + $api->get('protected', function() { |
|
| 53 | 53 | return response()->json([ |
| 54 | 54 | 'message' => 'Access to protected resources granted! You are seeing this text as you provided the token correctly.', |
| 55 | 55 | ]); |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * @author Taylor Otwell <[email protected]> |
| 7 | 7 | */ |
| 8 | 8 | $uri = urldecode( |
| 9 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
| 9 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
| 10 | 10 | ); |
| 11 | 11 | |
| 12 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -116,5 +116,5 @@ |
||
| 116 | 116 | | |
| 117 | 117 | */ |
| 118 | 118 | |
| 119 | - 'attributes' => [], |
|
| 119 | + 'attributes' => [ ], |
|
| 120 | 120 | ]; |