-
-
Save cursosdesarrolloweb/6535f764907f16d7aa3d980ac1847652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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