ldc-gen-game-web/app/Models/Range.php

21 lines
317 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Range extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['name'];
public function products()
{
return $this->hasMany(Product::class);
}
}