Init(Core): add project to git and add seeders and factory
This commit is contained in:
17
app/Models/Content.php
Normal file
17
app/Models/Content.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Page;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
|
||||
class Content extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
use HasFactory;
|
||||
|
||||
public function Page(){
|
||||
return $this->belongsTo(Page::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user