Come BackEnd

This commit is contained in:
saeid_01
2019-04-18 20:18:13 +04:30
parent dfbefad4a4
commit 03a135305b
61 changed files with 3266 additions and 58 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Uploadable extends Model
{
protected $fillable = ['uploadable_id', 'uploadable_type', 'gallery_id'];
public $timestamps = false;
public function gallery()
{
return $this->belongsTo('App\Gallery');
}
}