1234567891011121314151617181920212223242526 |
- <?php
-
- namespace App\Model\Raharja;
-
- use Illuminate\Database\Eloquent\Model;
-
- class Tips extends Model
- {
-
-
- protected $table = 'tips';
- protected $fillable = [
- 'title',
- 'content',
- 'user_id',
- 'thumbnail',
- 'sub_title',
- 'date_publish',
- ];
-
- public function tipsLike(){
- return $this->hasMany(TipsLikes::class, 'tips_id', 'id');
- }
-
-
- }
|