src/Contents.php
public function find(string $operation, string $locale)
    {
        $model = $this->notifications->first(function ($value) use($operation, $locale) {
            return $value->code === $locale && ($value->title === $operation || $value->name === $operation);
        });

        return $model ? $model->content : false;
    }
public function find(string $operation, string $locale)
    {
        $model = $this->notifications->first(function ($value) use($operation, $locale) {
            return $value->code === $locale && ($value->title === $operation || $value->name === $operation);
        });

        return $model ? $model->content : false;
    }
public function find ( string $ operation , string $ locale ) { $ model = $ this -> notifications -> first ( function ( $ value ) use ( $ operation , $ locale ) { return $ value -> code === $ locale && ( $ value -> title === $ operation || $ value -> name === $ operation ) ; } ) ; return $ model ? $ model -> content : false ; }
Finds notification content by title and locale.

@param string $operation
@param string $locale
@return bool
Finds notification content by title and locale .