to squeeze

This commit is contained in:
Clément
2025-06-03 14:10:35 +02:00
parent ea0884d39f
commit 2c4aeb4704
83 changed files with 1566 additions and 69 deletions

View File

@@ -1,12 +1,57 @@
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Database\Eloquent\Model;
/**
* Class Billet
*
* @property int $id
* @property Carbon $BIL_DATE
* @property string $BIL_TITRE
* @property string $BIL_CONTENU
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
*
* @property Collection|BilletCategorie[] $billet_categories
* @property Collection|Commentaire[] $commentaires
*
* @package App\Models
*/
class Billet extends Model
{
/** @use HasFactory<\Database\Factories\BilletFactory> */
use HasFactory;
protected $table = 'billets';
protected $casts = [
'BIL_DATE' => 'datetime'
];
protected $fillable = [
'BIL_DATE',
'BIL_TITRE',
'BIL_CONTENU'
];
protected $hidden = [
'id',
'created_at',
'updated_at'
];
public function billet_categories()
{
return $this->hasMany(BilletCategorie::class);
}
public function commentaires()
{
return $this->hasMany(Commentaire::class);
}
}