Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class Post extends Model
- {
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected $table = 'posts';
- public function image()
- {
- return $this->belongsTo('App\Models\Storage\Imageup');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement