Fix the user api response, don't return bids by default, fix flights column #639
This commit is contained in:
@@ -3,7 +3,14 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Contracts\Model;
|
||||
use Carbon\Carbon;
|
||||
|
||||
/**
|
||||
* @property string user_id
|
||||
* @property string flight_id
|
||||
* @property Carbon created_at
|
||||
* @property Carbon updated_at
|
||||
*/
|
||||
class Bid extends Model
|
||||
{
|
||||
public $table = 'bids';
|
||||
|
||||
@@ -201,10 +201,10 @@ class User extends Authenticatable
|
||||
/**
|
||||
* These are the flights they've bid on
|
||||
*/
|
||||
public function flights()
|
||||
{
|
||||
return $this->belongsToMany(Flight::class, 'bids');
|
||||
}
|
||||
// public function flights()
|
||||
// {
|
||||
// return $this->belongsToMany(Flight::class, 'bids');
|
||||
// }
|
||||
|
||||
/**
|
||||
* The bid rows
|
||||
|
||||
Reference in New Issue
Block a user