Установка статуса "В архиве" при создании информации о карте
This commit is contained in:
@@ -6,6 +6,14 @@ use Illuminate\Database\Eloquent\Model;
|
|||||||
|
|
||||||
class ArchiveInfo extends Model
|
class ArchiveInfo extends Model
|
||||||
{
|
{
|
||||||
|
|
||||||
|
protected static function booted()
|
||||||
|
{
|
||||||
|
static::creating(function (ArchiveInfo $model) {
|
||||||
|
$model->status_id = 2;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
protected $connection = 'pgsql';
|
protected $connection = 'pgsql';
|
||||||
protected $table = 'archive_infos';
|
protected $table = 'archive_infos';
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
|||||||
Reference in New Issue
Block a user