diff --git a/app/Console/Commands/Inspire.php b/app/Console/Commands/Inspire.php index db9ab85..33bf69d 100644 --- a/app/Console/Commands/Inspire.php +++ b/app/Console/Commands/Inspire.php @@ -1,6 +1,6 @@ \App\Http\Middleware\Authenticate::class, + 'auth' => \WorkoutGenerator\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, - 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, + 'guest' => \WorkoutGenerator\Http\Middleware\RedirectIfAuthenticated::class, ]; } diff --git a/app/Http/Middleware/Authenticate.php b/app/Http/Middleware/Authenticate.php index 4fbafec..dc81601 100644 --- a/app/Http/Middleware/Authenticate.php +++ b/app/Http/Middleware/Authenticate.php @@ -1,6 +1,6 @@ [ - 'App\Listeners\EventListener', + 'WorkoutGenerator\Events\SomeEvent' => [ + 'WorkoutGenerator\Listeners\EventListener', ], ]; diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php index d50b1c0..54ea03e 100644 --- a/app/Providers/RouteServiceProvider.php +++ b/app/Providers/RouteServiceProvider.php @@ -1,6 +1,6 @@ singleton( Illuminate\Contracts\Http\Kernel::class, - App\Http\Kernel::class + WorkoutGenerator\Http\Kernel::class ); $app->singleton( Illuminate\Contracts\Console\Kernel::class, - App\Console\Kernel::class + WorkoutGenerator\Console\Kernel::class ); $app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, - App\Exceptions\Handler::class + WorkoutGenerator\Exceptions\Handler::class ); /* diff --git a/composer.json b/composer.json index a6ced5e..68028c2 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "database" ], "psr-4": { - "App\\": "app/" + "WorkoutGenerator\\": "app/" } }, "autoload-dev": { diff --git a/config/app.php b/config/app.php index 15c75aa..61cf446 100644 --- a/config/app.php +++ b/config/app.php @@ -140,9 +140,9 @@ return [ /* * Application Service Providers... */ - App\Providers\AppServiceProvider::class, - App\Providers\EventServiceProvider::class, - App\Providers\RouteServiceProvider::class, + WorkoutGenerator\Providers\AppServiceProvider::class, + WorkoutGenerator\Providers\EventServiceProvider::class, + WorkoutGenerator\Providers\RouteServiceProvider::class, ], diff --git a/config/auth.php b/config/auth.php index 7f4a87f..7a00dc7 100644 --- a/config/auth.php +++ b/config/auth.php @@ -28,7 +28,7 @@ return [ | */ - 'model' => App\User::class, + 'model' => WorkoutGenerator\User::class, /* |-------------------------------------------------------------------------- diff --git a/config/services.php b/config/services.php index 93eec86..a36b081 100644 --- a/config/services.php +++ b/config/services.php @@ -30,7 +30,7 @@ return [ ], 'stripe' => [ - 'model' => App\User::class, + 'model' => WorkoutGenerator\User::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), ], diff --git a/database/factories/ModelFactory.php b/database/factories/ModelFactory.php index 0876c70..da23668 100644 --- a/database/factories/ModelFactory.php +++ b/database/factories/ModelFactory.php @@ -11,7 +11,7 @@ | */ -$factory->define(App\User::class, function (Faker\Generator $faker) { +$factory->define(WorkoutGenerator\User::class, function (Faker\Generator $faker) { return [ 'name' => $faker->name, 'email' => $faker->email, diff --git a/phpspec.yml b/phpspec.yml index eb57939..473c5ae 100644 --- a/phpspec.yml +++ b/phpspec.yml @@ -1,5 +1,5 @@ suites: main: - namespace: App - psr4_prefix: App + namespace: WorkoutGenerator + psr4_prefix: WorkoutGenerator src_path: app \ No newline at end of file