Framework update

This commit is contained in:
2024-08-25 18:26:29 +10:00
parent 7929afeb47
commit daf44c7339
57 changed files with 5809 additions and 4355 deletions

View File

@@ -11,25 +11,25 @@ use App\Jobs\{PhotoMove,VideoMove};
class AppServiceProvider extends ServiceProvider
{
use DispatchesJobs;
use DispatchesJobs;
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
// Any photo saved, queue it to be moved.
Photo::saved(function($photo) {
if ($photo->scanned AND ! $photo->duplicate AND ! $photo->remove AND ($x=$photo->moveable()) === TRUE) {
@@ -47,5 +47,5 @@ class AppServiceProvider extends ServiceProvider
$this->dispatch((new VideoMove($video))->onQueue('move'));
}
});
}
}
}