<?php

namespace App\Eloquents;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Feed extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'uuid',
        'url',
        'updated',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    protected $appends = ['type', 'transed_type'];

    protected $primaryKey = 'uuid';

    protected $keyType = 'string';

    /**
     * Relation: has many entries.
     */
    public function entries() : HasMany
    {
        return $this->hasMany('App\Eloquents\Entry');
    }

    /**
     * Local Scope: where url ($type.xml).
     *
     * @param  \Illuminate\Database\Eloquent\Builder $query
     * @param  string $type
     */
    public function scopeOfType(Builder $query, string $type) : Builder
    {
        return $query->where('url', 'LIKE', '%'.$type.'.xml');
    }

    /**
     * Mutator: feed type.
     */
    public function getTypeAttribute() : string
    {
        return basename(parse_url($this->url, PHP_URL_PATH), '.xml');
    }

    /**
     * Mutator: feed type.
     */
    public function getTransedTypeAttribute() : string
    {
        return trans('feedtypes.'.$this->type);
    }
}

<?php

namespace App\Eloquents;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Relations\HasMany;

class Feed extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'uuid',
        'url',
        'updated',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [];

    protected $appends = ['type', 'transed_type'];

    /**
     * Primary key column.
     */
    protected $primaryKey = 'uuid';

    /**
     * Primary key type.
     */
    protected $keyType = 'string';

    /**
     * Enable increment.
     */
    public $incrementing = false;

    /**
     * Relation: has many entries.
     */
    public function entries() : HasMany
    {
        return $this->hasMany('App\Eloquents\Entry');
    }

    /**
     * Local Scope: where url ($type.xml).
     *
     * @param  \Illuminate\Database\Eloquent\Builder $query
     * @param  string $type
     */
    public function scopeOfType(Builder $query, string $type) : Builder
    {
        return $query->where('url', 'LIKE', '%'.$type.'.xml');
    }

    /**
     * Mutator: feed type.
     */
    public function getTypeAttribute() : string
    {
        return basename(parse_url($this->url, PHP_URL_PATH), '.xml');
    }

    /**
     * Mutator: feed type.
     */
    public function getTransedTypeAttribute() : string
    {
        return trans('feedtypes.'.$this->type);
    }
}

Fix issue that don't save feed_uuid when new feed recoed
Fix issue that don't save feed_uuid when new feed recoed
