mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
Offer relations controller
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Feedback extends Model
|
||||
{
|
||||
@@ -28,4 +29,14 @@ class Feedback extends Model
|
||||
protected $casts = [
|
||||
'rating' => 'integer',
|
||||
];
|
||||
|
||||
/**
|
||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
|
||||
*/
|
||||
// public function user(): BelongsTo
|
||||
// {
|
||||
// return $this
|
||||
// ->belongsTo(User::class)
|
||||
// ->select('first_name');
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user