for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BBSLab\NovaTranslation\Models\Observers;
use BBSLab\NovaTranslation\Jobs\LocaleCreated;
use BBSLab\NovaTranslation\Jobs\LocaleDeleted;
use BBSLab\NovaTranslation\Models\Locale;
use BBSLab\NovaTranslation\NovaTranslation;
class LocaleObserver
{
/**
* Handle the Locale "created" event.
*
* @param \BBSLab\NovaTranslation\Models\Locale $locale
* @return void
*/
public function created(Locale $locale)
LocaleCreated::dispatch($locale);
}
* Handle the Locale "deleted" event.
public function deleted(Locale $locale)
NovaTranslation::forgetLocales();
LocaleDeleted::dispatch($locale);
* Handle the Locale "saved" event.
public function saved(Locale $locale)
$locale
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.