38 lines
636 B
PHP
38 lines
636 B
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Collection;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class Category
|
|
*
|
|
* @property int $id
|
|
* @property string $CAT_NOM
|
|
* @property Carbon|null $created_at
|
|
* @property Carbon|null $updated_at
|
|
*
|
|
* @property Collection|BilletCategorie[] $billet_categories
|
|
*
|
|
* @package App\Models
|
|
*/
|
|
class Category extends Model
|
|
{
|
|
protected $table = 'categories';
|
|
|
|
protected $fillable = [
|
|
'CAT_NOM'
|
|
];
|
|
|
|
public function billet_categories()
|
|
{
|
|
return $this->hasMany(BilletCategorie::class, 'categorie_id');
|
|
}
|
|
}
|