akaunting/app/Providers/Observer.php

32 lines
568 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
namespace App\Providers;
2019-11-16 10:21:14 +03:00
use App\Models\Banking\Transaction;
2022-06-01 10:15:55 +03:00
use App\Models\Setting\Category;
2019-11-16 10:21:14 +03:00
use Illuminate\Support\ServiceProvider as Provider;
2017-09-14 22:21:00 +03:00
2019-11-16 10:21:14 +03:00
class Observer extends Provider
2017-09-14 22:21:00 +03:00
{
/**
2021-04-16 00:59:43 +03:00
* Register any application services.
2017-09-14 22:21:00 +03:00
*
* @return void
*/
2021-04-16 00:59:43 +03:00
public function register()
2017-09-14 22:21:00 +03:00
{
2021-04-16 00:59:43 +03:00
//
2017-09-14 22:21:00 +03:00
}
/**
2021-04-16 00:59:43 +03:00
* Bootstrap any application services.
2017-09-14 22:21:00 +03:00
*
* @return void
*/
2021-04-16 00:59:43 +03:00
public function boot()
2017-09-14 22:21:00 +03:00
{
2021-04-16 00:59:43 +03:00
Transaction::observe('App\Observers\Transaction');
2022-06-01 10:15:55 +03:00
Category::observe('App\Observers\Category');
2017-09-14 22:21:00 +03:00
}
2019-11-16 10:21:14 +03:00
}