Init(Core): Change repo
This commit is contained in:
22
app/Models/RecentArt.php
Normal file
22
app/Models/RecentArt.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class RecentArt extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $fillable = [
|
||||
'user_id',
|
||||
'law_id'
|
||||
];
|
||||
|
||||
|
||||
public function law()
|
||||
{
|
||||
return $this->belongsTo(Law::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user