純格式化,不含邏輯變更。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,8 +8,8 @@ use App\Exceptions\BookingRuleViolationException;
|
|||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\Booking;
|
use App\Models\Booking;
|
||||||
use App\Models\CourseSchedule;
|
use App\Models\CourseSchedule;
|
||||||
use App\Notifications\BookingCreatedNotification;
|
|
||||||
use App\Notifications\BookingCancelledNotification;
|
use App\Notifications\BookingCancelledNotification;
|
||||||
|
use App\Notifications\BookingCreatedNotification;
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
@@ -158,6 +158,7 @@ class MemberBookingController extends Controller
|
|||||||
private function formatBooking(Booking $b): array
|
private function formatBooking(Booking $b): array
|
||||||
{
|
{
|
||||||
$offer = $b->schedule?->divingOffer;
|
$offer = $b->schedule?->divingOffer;
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'id' => $b->id,
|
'id' => $b->id,
|
||||||
'offer_id' => $offer?->id,
|
'offer_id' => $offer?->id,
|
||||||
|
|||||||
Reference in New Issue
Block a user