for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class TechTipFiles extends Model
{
protected $primaryKey = 'tip_file_id';
protected $fillable = ['tip_id', 'file_id'];
protected $hidden = ['created_at', 'updated_at', 'tip_file_id'];
// public function techTips()
// {
// return $this->hasMany('App\TechTips', 'tip_id', 'tip_id');
// }
public function files()
return $this->hasOne('App\Files', 'file_id', 'file_id');
}