This question already has an answer here:
- How do I use shorthand if / else? 7 answers
I am working on la-ravel project. I have this code.
please explain
what is ?
and :
if($request->pre_delivered){
$grain_sale->undelivered_bushels = ($request->bushels_sold >= $request->pre_delivered ? $request->bushels_sold - $request->pre_delivered : NULl);
dd($grain_sale->undelivered_bushels);
}
via Bilal Ahmed