source: app/Models/Like.php@ 7ed1069

Last change on this file since 7ed1069 was 0924b6c, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago

initial commit

  • Property mode set to 100644
File size: 218 bytes
Line 
1<?php
2
3namespace App\Models;
4
5use Illuminate\Database\Eloquent\Model;
6
7class Like extends Model
8{
9 protected $table = "likes";
10
11 public function post()
12 {
13 return $this->belongsTo(Post::class);
14 }
15}
Note: See TracBrowser for help on using the repository browser.