hosting-backend/app/Models/Portfolio.php
Alexis Bruneteau c813386e18 working
2025-06-04 21:53:28 +02:00

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);
}
}