photo/app/Models/Software.php
2019-11-27 21:30:43 +11:00

15 lines
221 B
PHP

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