27 lines
410 B
PHP
27 lines
410 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Portfolio extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'portfolios';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'domain',
|
|
'path',
|
|
'deployed'
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
}
|