fixed filament resource forms
This commit is contained in:
18
app/Models/PhotoLike.php
Normal file
18
app/Models/PhotoLike.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class PhotoLike extends Model
|
||||
{
|
||||
protected $table = 'photo_likes';
|
||||
protected $guarded = [];
|
||||
public $timestamps = false;
|
||||
|
||||
public function photo(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Photo::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user