Deploy / deploy (push) Successful in 28s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
719 B
PHP
33 lines
719 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Illuminate\Support\Facades\Event;
|
|
use App\Models\Product;
|
|
use App\Observers\ProductObserver;
|
|
use SocialiteProviders\Manager\SocialiteWasCalled;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
//
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
Product::observe(ProductObserver::class);
|
|
|
|
Event::listen(function (SocialiteWasCalled $event) {
|
|
$event->extendSocialite('nextcloud', \SocialiteProviders\Nextcloud\Provider::class);
|
|
});
|
|
}
|
|
}
|