Init
This commit is contained in:
30
app/Models/Studios.php
Normal file
30
app/Models/Studios.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Studios extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var string[]
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'slug',
|
||||
];
|
||||
|
||||
/**
|
||||
* Get the tags for the Hentai.
|
||||
*/
|
||||
public function hentais(): HasMany
|
||||
{
|
||||
return $this->hasMany(Hentai::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user