PHP code example of rene-roscher / observable-provider
1. Go to this page and download the library: Download rene-roscher/observable-provider library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rene-roscher / observable-provider example snippets
namespace App\Providers;
use App\Models\User;
use App\Observers\UserObserver;
use Xepare\ObservableProvider as ServiceProvider;
class ObserverServiceProvider extends ServiceProvider
{
/**
* The observer mappings for the application.
*
* @var array
*/
protected array $observables = [
User::class => UserObserver::class,
];
}