Download core/app/Models/Follow.php from pnacorp/codeplus: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/Models/Follow.php
- Command line
-
hf download hf://pnacorp/codeplus/core/app/Models/Follow.php
-
curl -L -o Follow.php https://huggingface.co/pnacorp/codeplus/resolve/main/core/app/Models/Follow.php
347 Bytes
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Follow extends Model | |
| { | |
| protected $fillable = ['user_id', 'follower_id']; | |
| public function user() | |
| { | |
| return $this->belongsTo(User::class); | |
| } | |
| public function follower() | |
| { | |
| return $this->belongsTo(User::class, 'follower_id'); | |
| } | |
| } | |