photo/app/Models/Software.php
2019-12-26 15:56:31 +11:00

15 lines
232 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Software extends Model
{
protected $fillable = ['name','model_id'];
public function model()
{
return $this->belongsTo(\App\Models\Model::class);
}
}