Reputation: 645
I'm passing an object next to my form request like so:
public function updateTrade(SendTradeRequest $request, Trade $trade)
How can I access the Trade $trade object that was sent with this request in SendTradeRequest in the rules() section?
Upvotes: 1
Views: 1509
Reputation: 5332
There is 2 ways to get binded entity in form request:
$this->trade
$this->route('trade')
Upvotes: 7