aboutsummaryrefslogtreecommitdiff
path: root/app/Providers
diff options
context:
space:
mode:
authorfloppydiskette <floppydisk@hyprcat.net>2024-09-13 12:58:12 +0100
committerfloppydiskette <floppydisk@hyprcat.net>2024-09-13 12:59:16 +0100
commit2c3400fb4f5a22951d42f286975201bf817d7883 (patch)
treea08b06f5f6d5df4f6774da7645d85418609a4cf2 /app/Providers
parentd8915dcca4d9752f6f254e86afa39ef7f83617d1 (diff)
wronglucky
Diffstat (limited to 'app/Providers')
-rw-r--r--app/Providers/AppServiceProvider.php21
-rw-r--r--app/Providers/AuthServiceProvider.php25
-rw-r--r--app/Providers/BroadcastServiceProvider.php19
-rw-r--r--app/Providers/EventServiceProvider.php38
-rw-r--r--app/Providers/RouteServiceProvider.php40
5 files changed, 0 insertions, 143 deletions
diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php
deleted file mode 100644
index 2209133..0000000
--- a/app/Providers/AppServiceProvider.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-namespace App\Providers;
-
-use Illuminate\Support\Facades\Config;
-use Illuminate\Support\ServiceProvider;
-use PostHog\PostHog;
-
-class AppServiceProvider extends ServiceProvider {
- /**
- * Register any application services.
- */
- public function register(): void {
- //
- }
-
- /**
- * Bootstrap any application services.
- */
- public function boot(): void {}
-}
diff --git a/app/Providers/AuthServiceProvider.php b/app/Providers/AuthServiceProvider.php
deleted file mode 100644
index 3751a10..0000000
--- a/app/Providers/AuthServiceProvider.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-namespace App\Providers;
-
-use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
-
-class AuthServiceProvider extends ServiceProvider
-{
- /**
- * The model to policy mappings for the application.
- *
- * @var array<class-string, class-string>
- */
- protected $policies = [
- //
- ];
-
- /**
- * Register any authentication / authorization services.
- */
- public function boot(): void
- {
- //
- }
-}
diff --git a/app/Providers/BroadcastServiceProvider.php b/app/Providers/BroadcastServiceProvider.php
deleted file mode 100644
index 2be04f5..0000000
--- a/app/Providers/BroadcastServiceProvider.php
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-namespace App\Providers;
-
-use Illuminate\Support\Facades\Broadcast;
-use Illuminate\Support\ServiceProvider;
-
-class BroadcastServiceProvider extends ServiceProvider
-{
- /**
- * Bootstrap any application services.
- */
- public function boot(): void
- {
- Broadcast::routes();
-
- require base_path('routes/channels.php');
- }
-}
diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php
deleted file mode 100644
index 2d65aac..0000000
--- a/app/Providers/EventServiceProvider.php
+++ /dev/null
@@ -1,38 +0,0 @@
-<?php
-
-namespace App\Providers;
-
-use Illuminate\Auth\Events\Registered;
-use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
-use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
-use Illuminate\Support\Facades\Event;
-
-class EventServiceProvider extends ServiceProvider
-{
- /**
- * The event to listener mappings for the application.
- *
- * @var array<class-string, array<int, class-string>>
- */
- protected $listen = [
- Registered::class => [
- SendEmailVerificationNotification::class,
- ],
- ];
-
- /**
- * Register any events for your application.
- */
- public function boot(): void
- {
- //
- }
-
- /**
- * Determine if events and listeners should be automatically discovered.
- */
- public function shouldDiscoverEvents(): bool
- {
- return false;
- }
-}
diff --git a/app/Providers/RouteServiceProvider.php b/app/Providers/RouteServiceProvider.php
deleted file mode 100644
index 1cf5f15..0000000
--- a/app/Providers/RouteServiceProvider.php
+++ /dev/null
@@ -1,40 +0,0 @@
-<?php
-
-namespace App\Providers;
-
-use Illuminate\Cache\RateLimiting\Limit;
-use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
-use Illuminate\Http\Request;
-use Illuminate\Support\Facades\RateLimiter;
-use Illuminate\Support\Facades\Route;
-
-class RouteServiceProvider extends ServiceProvider
-{
- /**
- * The path to your application's "home" route.
- *
- * Typically, users are redirected here after authentication.
- *
- * @var string
- */
- public const HOME = '/home';
-
- /**
- * Define your route model bindings, pattern filters, and other route configuration.
- */
- public function boot(): void
- {
- RateLimiter::for('api', function (Request $request) {
- return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
- });
-
- $this->routes(function () {
- Route::middleware('api')
- ->prefix('api')
- ->group(base_path('routes/api.php'));
-
- Route::middleware('web')
- ->group(base_path('routes/web.php'));
- });
- }
-}