mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
71 - Asserting Against View Data
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Order;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class OrdersController extends Controller
|
||||
{
|
||||
public function show()
|
||||
public function show($confirmationNumber)
|
||||
{
|
||||
|
||||
$order = Order::where('confirmation_number', $confirmationNumber)->first();
|
||||
return view('orders.show', ['order' => $order]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user