Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop unused user stuff. #59

Merged
merged 5 commits into from Nov 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -18,3 +18,6 @@ yarn-error.log
/.idea
/.vscode
/leafapp.iml

output.xml
output
18 changes: 0 additions & 18 deletions app/Http/Kernel.php
Expand Up @@ -6,15 +6,7 @@

class Kernel extends HttpKernel
{
/**
* The application's global HTTP middleware stack.
*
* These middleware are run during every request to your application.
*
* @var array
*/
protected $middleware = [
// \App\Http\Middleware\TrustHosts::class,
\App\Http\Middleware\TrustProxies::class,
\Fruitcake\Cors\HandleCors::class,
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
Expand All @@ -40,25 +32,15 @@ class Kernel extends HttpKernel
],

'api' => [
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
'throttle:api',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];

/**
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
* @var array
*/
protected $routeMiddleware = [
'auth' => \App\Http\Middleware\Authenticate::class,
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
'can' => \Illuminate\Auth\Middleware\Authorize::class,
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
Expand Down
21 changes: 0 additions & 21 deletions app/Http/Middleware/Authenticate.php

This file was deleted.

32 changes: 0 additions & 32 deletions app/Http/Middleware/RedirectIfAuthenticated.php

This file was deleted.

20 changes: 0 additions & 20 deletions app/Http/Middleware/TrustHosts.php

This file was deleted.

32 changes: 0 additions & 32 deletions app/Models/User.php

This file was deleted.

16 changes: 0 additions & 16 deletions app/Providers/BroadcastServiceProvider.php

This file was deleted.

1 change: 0 additions & 1 deletion config/app.php
Expand Up @@ -171,7 +171,6 @@
*/
App\Providers\AppServiceProvider::class,
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,

Expand Down
38 changes: 0 additions & 38 deletions database/factories/UserFactory.php

This file was deleted.

36 changes: 0 additions & 36 deletions database/migrations/2014_10_12_000000_create_users_table.php

This file was deleted.

This file was deleted.

This file was deleted.

19 changes: 19 additions & 0 deletions database/migrations/2021_11_28_185710_drop_useless_tables.php
@@ -0,0 +1,19 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;

class DropUselessTables extends Migration
{
public function up(): void
{
Schema::dropIfExists('users');
Schema::dropIfExists('password_resets');
Schema::dropIfExists('personal_access_tokens');
}

public function down(): void
{
throw new InvalidArgumentException('Reversing this migration is not supported.');
}
}
1 change: 1 addition & 0 deletions phpunit.xml
Expand Up @@ -15,6 +15,7 @@
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./app</directory>
<directory suffix=".php">./database/factories</directory>
</include>
</coverage>
<php>
Expand Down
18 changes: 0 additions & 18 deletions routes/channels.php

This file was deleted.