Initial commit
This commit is contained in:
22
app/Models/TaggableLocaleContext.php
Normal file
22
app/Models/TaggableLocaleContext.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class TaggableLocaleContext extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $table = 'taggable_locale_context';
|
||||
|
||||
|
||||
protected $guarded = [];
|
||||
|
||||
public function tags()
|
||||
{
|
||||
return $this->belongsToMany(Tag::class, 'taggable_locale_context', 'context_id', 'tag_id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user