Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App\Models;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Post extends Model
  8. {
  9.  
  10.     /**
  11.      * The table associated with the model.
  12.      *
  13.      * @var string
  14.      */
  15.     protected $table = 'posts';
  16.  
  17.     public function image()
  18.     {
  19.         return $this->belongsTo('App\Models\Storage\Imageup');
  20.     }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement