Page MenuHomeDevCentral

D430.diff
No OneTemporary

D430.diff

diff --git a/app/Console/Commands/AccountDump.php b/app/Console/Commands/AccountDump.php
--- a/app/Console/Commands/AccountDump.php
+++ b/app/Console/Commands/AccountDump.php
@@ -3,7 +3,7 @@
namespace AuthGrove\Console\Commands;
use Illuminate\Console\Command;
-use AuthGrove\User as User;
+use AuthGrove\Models\User;
class AccountDump extends Command
{
@@ -45,7 +45,7 @@
switch ($format) {
case "human":
- $headers = array_map('\AuthGrove\User::localizeAttribute', $attributes);
+ $headers = array_map('\AuthGrove\Models\User::localizeAttribute', $attributes);
$this->table($headers, $users);
break;
diff --git a/app/Console/Services/AccountHelpers.php b/app/Console/Services/AccountHelpers.php
--- a/app/Console/Services/AccountHelpers.php
+++ b/app/Console/Services/AccountHelpers.php
@@ -2,7 +2,7 @@
namespace AuthGrove\Console\Services;
-use AuthGrove\User;
+use AuthGrove\Models\User;
class AccountHelpers {
diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php
--- a/app/Http/Controllers/Auth/AuthController.php
+++ b/app/Http/Controllers/Auth/AuthController.php
@@ -8,7 +8,7 @@
use AuthGrove\Http\Controllers\Controller;
use AuthGrove\Services\Registrar;
-use AuthGrove\User;
+use AuthGrove\Models\User;
use Route;
diff --git a/app/User.php b/app/Models/User.php
rename from app/User.php
rename to app/Models/User.php
--- a/app/User.php
+++ b/app/Models/User.php
@@ -1,4 +1,4 @@
-<?php namespace AuthGrove;
+<?php namespace AuthGrove\Models;
use Illuminate\Auth\Authenticatable;
use Illuminate\Database\Eloquent\Model;
diff --git a/app/Services/Registrar.php b/app/Services/Registrar.php
--- a/app/Services/Registrar.php
+++ b/app/Services/Registrar.php
@@ -1,6 +1,6 @@
<?php namespace AuthGrove\Services;
-use AuthGrove\User;
+use AuthGrove\Models\User;
use Validator;
/**
diff --git a/config/auth.php b/config/auth.php
--- a/config/auth.php
+++ b/config/auth.php
@@ -67,7 +67,7 @@
'providers' => [
'users' => [
'driver' => 'eloquent',
- 'model' => AuthGrove\User::class,
+ 'model' => AuthGrove\Models\User::class,
],
// 'users' => [
diff --git a/config/services.php b/config/services.php
--- a/config/services.php
+++ b/config/services.php
@@ -30,7 +30,7 @@
],
'stripe' => [
- 'model' => 'AuthGrove\User',
+ 'model' => 'AuthGrove\Models\User',
'key' => '',
'secret' => '',
],
diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php
--- a/database/factories/ModelFactory.php
+++ b/database/factories/ModelFactory.php
@@ -11,7 +11,7 @@
|
*/
-$factory->define(AuthGrove\User::class, function (Faker\Generator $faker) {
+$factory->define(AuthGrove\Models\User::class, function (Faker\Generator $faker) {
return [
'username' => $faker->username,
'fullname' => $faker->name,
diff --git a/database/seeds/UsersTableSeeder.php b/database/seeds/UsersTableSeeder.php
--- a/database/seeds/UsersTableSeeder.php
+++ b/database/seeds/UsersTableSeeder.php
@@ -9,6 +9,6 @@
* @return void
*/
public function run() {
- factory(AuthGrove\User::class, 50)->create();
+ factory(AuthGrove\Models\User::class, 50)->create();
}
}

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 07:20 (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248894
Default Alt Text
D430.diff (3 KB)

Event Timeline