- add favorites and reported tabs in user profile pages - add remove favorites - customers can view a deal directly from profiles section and deal modal is shown in explore page - fix formatting by pint
15 lines
316 B
PHP
15 lines
316 B
PHP
<?php
|
|
|
|
use App\Http\Resources\DealResource;
|
|
use App\Models\Deal;
|
|
use App\Queries\ExplorePageDealsQuery;
|
|
|
|
Route::get('/deals/{deal}', function (Deal $deal) {
|
|
return new DealResource(
|
|
(new ExplorePageDealsQuery)
|
|
->builder()
|
|
->where('id', $deal->id)
|
|
->first()
|
|
);
|
|
});
|