Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Last active December 20, 2020 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/6535f764907f16d7aa3d980ac1847652 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/6535f764907f16d7aa3d980ac1847652 to your computer and use it in GitHub Desktop.
<?php
namespace App\Models\Tenant;
use Database\Factories\ArticleFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Tenancy\Affects\Connections\Support\Traits\OnTenant;
class Article extends Model
{
use HasFactory, OnTenant;
protected $guarded = ["id"];
protected static function newFactory(): ArticleFactory {
return ArticleFactory::new();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment