HashtagFollow.php 307 B

123456789101112131415161718192021
  1. <?php
  2. namespace App;
  3. use Illuminate\Database\Eloquent\Model;
  4. class HashtagFollow extends Model
  5. {
  6. protected $fillable = [
  7. 'user_id',
  8. 'profile_id',
  9. 'hashtag_id'
  10. ];
  11. const MAX_LIMIT = 250;
  12. public function hashtag()
  13. {
  14. return $this->belongsTo(Hashtag::class);
  15. }
  16. }