<commit_before><?php namespace Ivacuum\Generic\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Уведомление
 *
 * @property int $id
 * @property string $type
 * @property int $notifiable_id
 * @property string $notifiable_type
 * @property string $data
 * @property \Illuminate\Support\Carbon $read_at
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 *
 * @mixin \Eloquent
 */
class Notification extends Model
{
    protected $keyType = 'string';
    protected $guarded = ['created_at', 'updated_at'];
    protected $dates = ['read_at'];
    protected $perPage = 50;

    public function notifiable()
    {
        return $this->morphTo();
    }

    public function breadcrumb(): string
    {
        return $this->id;
    }
}<commit_msg>Уведомление наследуется от правильного класса<commit_after><?php namespace Ivacuum\Generic\Models;

use Illuminate\Notifications\DatabaseNotification;

/**
 * Уведомление
 *
 * @property int $id
 * @property string $type
 * @property int $notifiable_id
 * @property string $notifiable_type
 * @property string $data
 * @property \Illuminate\Support\Carbon $read_at
 * @property \Illuminate\Support\Carbon $created_at
 * @property \Illuminate\Support\Carbon $updated_at
 *
 * @mixin \Eloquent
 */
class Notification extends DatabaseNotification
{
    protected $keyType = 'string';
    protected $guarded = ['created_at', 'updated_at'];
    protected $dates = ['read_at'];
    protected $perPage = 50;

    public function notifiable()
    {
        return $this->morphTo();
    }

    public function breadcrumb(): string
    {
        return $this->id;
    }

    public function basename(): string
    {
        return \Str::snake(\Str::replaceLast('Notification', '', class_basename($this->type)));
    }
}
{'fraction_non_alphanumeric': 0.12693156732891833, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 3.672680412371134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4982509', 'n_tokens_mistral': 552, 'n_tokens_neox': 568, 'n_words': 131}