Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

palla451's avatar

FullCalendar Booking

Hy all, i have this problem: I want the view of this example : https://fullcalendar.io/releases/fullcalendar-scheduler/1.9.4/demos/json.html in this example i have the json file resource end event Events: [ { id: "1", resourceId: "b", start: "2018-04-07T02:00:00", end: "2018-04-07T07:00:00", title: "event 1" } ] and Resource: [

palla451's avatar
palla451's avatar palla4517yrs agoLaravel
2
1
Last reply by palla451 7yrs ago
CooL's avatar

schedule and find gaps in booking

i need a help from with database-design and how to manage queries to store schedule of masters and find gaps to show to clients when master is available. I can use both mysql or postgres. I'm just stucked how to do this. Fiddle: http://sqlfiddle.com/#!9/071e21 Some description: Masters can have regular schedule like monday: 08:00-18:00, tuesday: 09:00-19:00 or odd/even days (f

CooL's avatar
CooL's avatar CooL8yrs agoTips
7
1
Last reply by CooL 8yrs ago
Noman's avatar

order booking

how can i select multiple categories and every category have multiple products and also how can select multiple products for every category..............category id in product table forgn key..... plzzz help tanx in advanc

Noman's avatar
Noman's avatar Noman9yrs agoLaravel
1
1
Last reply by Noman 9yrs ago
Chunky's avatar

Managing calendars and booking appointments

I'm going to build an application in Laravel where the central focus is around managing bookings against resources (employees). A merchant can set up an account, add any number of employees and clients are able to book time slots with the merchant if there is availability. The merchants will be able to manage their availability using the calendar and have the ability to create

Chunky's avatar
Chunky's avatar deltorro9yrs agoGeneral
1
1
Last reply by deltorro 9yrs ago
latz's avatar

Booking app - need help with steps

Hi, i want to create an application for book an appointment. The admin enters a period (e.g. every 20 min; from 8pm to 10pm) and the user selects a time. How would you solve this? Has someone an approach? thanks ml

latz's avatar
latz's avatar ARCANEDEV10yrs agoTips
7
1
Last reply by ARCANEDEV 10yrs ago
Kai-T's avatar

Are Queues a solution to my problem?

I'm working on an application, where users can book a slot on an event. These event's have maximum users start and end of the event start and end of the booking window There will be moments in Time, where users want to join these events en masse. My current implementation lags out if arround 1.5k users try to join in the same moment. As the page is slow, they tend to refresh

Kai-T's avatar
Kai-T's avatar Kai-T6mos agoDesign
4
4
Last reply by Kai-T 6mos ago
enadabuzaid's avatar

Laravel Enum cast: compare enum case vs case->value?

Hello I’m using Enums with Eloquent casts: // Model: Booking protected $casts = [ 'booking_type' => BookingType::class, 'third_party_status' => ThirdPartyStatus::class, ]; enum BookingType: int { case REGULAR = 0; case TOURIST = 1; public function label(): string { return match ($this) { self::REGULAR => 'Regular',

enadabuzaid's avatar
enadabuzaid's avatar Glukinho9mos agoLaravel
2
1
Last reply by Glukinho 9mos ago
jhob101's avatar

Alpine property not defined in Livewire component

Been staring at this for far too many hours now and can't work out why it's not working. The entire livewire component, slightly simplified is below: <div class="overflow-x-auto"> <flux:table> <flux:table.columns> <flux:table.column>Description</flux:table.column> <flux:table.column>Amount</fl

jhob101's avatar
jhob101's avatar jhob1011yr agoLivewire
3
1
Last reply by jhob101 1yr ago
npboy's avatar

php form in laravel project.

1st part: Mail::send('emails.reservation-mail',$data,function ($message) use ($data){ $message->from($data['from']); $message->to($data['email']); $message->subject($data['subject']); }); 2nd part: Mail::send('emails.booking-mail',$data,function ($message) use ($data){ $message->from($data['email']); $message->to($data['from']); $message->subject('Thank You Fo

npboy's avatar
npboy's avatar Tray21yr agoPHP
1
1
Last reply by Tray2 1yr ago
spoonego's avatar

Analysis paralysis: Help choosing the right tools.

Hi everyone , I hit a crossroads choosing what packages use with laravel for our company's app full rewrite. For context the app is a tourist guide so we have hotels, restaurants, attractions and events, the restaurants, attractions and events are managed by us, the hotels also but we also have a booking engine that hotels can use, so the app is something like this : example.co

spoonego's avatar
spoonego's avatar RemiM1yr agoDesign
3
1
Last reply by RemiM 1yr ago
PeteBatin's avatar

PHP Carbon diffInWeekdays alternative to return float instead of int

I'm working on a leave/holiday management system. As well as booking full days leave/holiday they can book half days (morning or afternoon off). I need to calculate the total amount of days during a requested period. 3 and a half days would be presented as 3.5 To make calculations easier for half days, the maths is based on a day starting at 00:00 and ending at 23:59:59.999999

PeteBatin's avatar
PeteBatin's avatar PeteBatin1yr agoPHP
3
38
Last reply by PeteBatin 1yr ago
thisisthejay's avatar

Laravel subdomain setup

I have a Laravel app for a client which has been going great and in production for several months. The app is hosted on Laravel Forge and the Server on Digital Ocean. The app sits on a subdomain: https://app.company.com (subdomain) I have now built out the corporate site pages (landing page, booking page and a few others). It is within the same laravel app codebase. There is

thisisthejay's avatar
thisisthejay's avatar LaryAI1yr agoForge
1
1
Last reply by LaryAI 1yr ago
TiboriusDev's avatar

foreach array does not update

I save a new entry and then retrieve the data from the database again. But the foreach only shows the number of entries it had before. So there were 5 before and after creating a new entry there are still 5, but the variable has 6 entries. count($bookings) show 6 laravel 11 livewire 3 public function save(){ $this->validate([ 'value' => 'required',

TiboriusDev's avatar
TiboriusDev's avatar TiboriusDe...1yr agoLivewire
2
1
Last reply by TiboriusDev 1yr ago
dani94's avatar

BelongsTo with in memory pivot column

Hey guys! I dont know if possible... but i would like to create a in memory pivot column. I have a Booking model with could contains a Coupon: Booking.php public function coupon() { return $this->belongsTo(Coupon::class); } I would like to do something like: public function coupon() { return $this->belongsTo(Coupon::class)->using(BookingCou

dani94's avatar
dani94's avatar dani941yr agoEloquent
2
1
Last reply by dani94 1yr ago
AlthafBudiman's avatar

laravel dompdf server error 500 in production vercel

im trying to use download pdf feature with laravel dompdf and in local it works just fine, buat when i deploy it on the server there's a server error 500.. use Pdf; $pdf = Pdf::loadView('kwitansi.index', [ 'bookings' => [$booking], 'isMember' => $isMember, 'keterangan' => $keterangan, 'totalPrice' => $booking->price, 'noKwitansi' => $request->no_kwitansi, '

AlthafBudiman's avatar
AlthafBudiman's avatar MUHAMMADUS...1yr agoLaravel
4
1
Last reply by MUHAMMADUSMAN 1yr ago
Nyi0309's avatar

How can i update Field Information when reactive doenst work

I would like to update the array for the disabledDates() as soon as the item changes. I tried using afterStateUpdated in the select field for Item, but unfortunately it doesn't work. Then I made the field reactive and wrote a small function that outputs the occupied days based on the item. When editing, the correct days are loaded for the item (screenshot 1). But if I change th

Nyi0309's avatar
Nyi0309's avatar Nyi03091yr agoFilament
0
1
andyjameswhite's avatar

Web Route gives 404 with Implicit Binding

This must be the easiest solve ever, but somehow I cannot see what I've done wrong. I can create a type hinted implicit binding in the web.php route file and dump the contents of a chosen booking, based on the ID contained in {$booking} However when I do the same thing to hit the BookingController it gives me a 404. For further reference the route /booking/create hits the Booki

andyjameswhite's avatar
andyjameswhite's avatar andyjamesw...1yr agoLaravel
2
1
Last reply by andyjameswhite 1yr ago
ivqonsanada's avatar

Laravel 11 Enum Casting

How to use laravel 11 enum casting when the value is number but need to cast it to its name version? enum BookingType: int implements HasLabel { case Booking = 0; case NotAvailable = 1; case Subscription = 2; public static function toName($value): string { return match ($value) { self::Booking->value => 'Booking', self

ivqonsanada's avatar
ivqonsanada's avatar ivqonsanad...1yr agoLaravel
4
22
Last reply by ivqonsanada 1yr ago
Gamborgc's avatar

Run code once in a foreach loop

I have this code: @foreach($weekdays as $weekday) <div> <div id="days" class="relative h-40 bg-neutral-50"> <!-- HERE --> {{ $weekday->weekday->format('l jS \ F Y') }} <div id="day" class="static "> <!-- HERE --> @foreach($weekd

Gamborgc's avatar
Gamborgc's avatar Gamborgc1yr agoLaravel
2
1
Last reply by Gamborgc 1yr ago
JazzMaster's avatar

Make button inside ternary operator?

Hello! I have this code: i have this code snippet: <div class="block relative timeslot timeslot{{ $hour->hour }} text-center" data-value="{{ $hour->hour->toDateTimeString() }}"> <div class="z-40"> {{ $hour->hour->format('H:i') }}

JazzMaster's avatar
JazzMaster's avatar JazzMaster1yr agoLaravel
2
1
Last reply by JazzMaster 1yr ago
Gamborgc's avatar

Can't find error in Attempt to read property "ID" on null

It's a classic error, but i just can't seem to find the bug. I am trying to submit my form: <form action="{{ route("doBooking") }}"> @csrf <input type="hidden" name="user_id" id="user_id_value" value="{{$user->id}}"> <input type="hidden" name="room_id" i

Gamborgc's avatar
Gamborgc's avatar Gamborgc1yr agoLaravel
4
1
Last reply by Gamborgc 1yr ago
Gamborgc's avatar

Are eventlisteners affected by loops?

I am trying to add an eventlistener in one file where i have all my javascript code to get information from another file (an x-component), but i can't get my eventlistener to work? This is my eventlistener: document.getElementById('minut_box_selector').addEventListener('change', updateTimeDisplay); function updateTimeDisplay() { let hoursInput = document.getElementById('ho

Gamborgc's avatar
Gamborgc's avatar Gamborgc1yr agoJavaScript
2
1
Last reply by Gamborgc 1yr ago
Himmat's avatar

Paypal Services

Hello I was develop one website in that course owner can post his course and other (guest) user can purchase that course. Here I was implement paypal payment gateway when any user purchase that course. Here every course has some commission that will be get website owner and another amount get course owner Let's course price is 100$ and commission rate is 10$ then final price fo

Himmat's avatar
Himmat's avatar bvfi-dev2yrs agoGeneral
1
1
Last reply by bvfi-dev 2yrs ago
iluca89's avatar

Get number of occupied nights on Hotel System

Hello to everyone, I'm trying to get number of occupied nights in a given month for an Hotel System in Laravel. In my DB I have arrival_date and departure_date. But if in the same date I have a checkout from one booking, and a checkin from on other one, I have to consider just one night. I tried this, but it doesn't work: public function occupancyRate() { $startOfMonth = Ca

iluca89's avatar
iluca89's avatar Snapey2yrs agoLaravel
2
1
Last reply by Snapey 2yrs ago
MilkaCow's avatar

My FullCalendar does not refresh events

Hello, I've got 2 Livewire components in a blade view: select-house fullcalendar They are NOT nested. "select-house" display a select option with house name, id. "fullcalendar" display a FullCalendar with events according of house_id which is defined in select-house. Both components are initialy displayed correctly in the browser exepted that fullcalendar

MilkaCow's avatar
MilkaCow's avatar MilkaCow2yrs agoLivewire
0
1
jakubjv's avatar

Cron or if statement for proper validation of confirmation ?

Hello everyone, I have a question. In this component, reservations are saved, and these reservations need to be confirmed by a verification code. Reservations are initially saved as unconfirmed with is_confirmed set to false. When the user enters the code received by email, it is then set to is_confirmed = true. Now, regarding the issue, I want to handle the deletion of unconfi

jakubjv's avatar
jakubjv's avatar kiwi01342yrs agoLivewire
14
1
Last reply by kiwi0134 2yrs ago
YacineHamiane's avatar

make payment online with stripe

I worked on some project with Laravel, and this is the first time that I am faced with this kind of work. I followed the documentation but I'm a little lost. I installed laravel cashier I configured the User model and .env and config/service.php by adding STRIPE_KEY and STRIPE_SECRET . and here is my code : <form action="{{ route('process-payment', ['bookingId' =>

YacineHamiane's avatar
YacineHamiane's avatar gych2yrs agoLaravel
4
1
Last reply by gych 2yrs ago
jakubjv's avatar

Why is validation not working properly?

Hello everyone, I am experiencing an issue with form validation after submission. I attempted to create two reservations simultaneously in separate browsers. Although they were not created at exactly the same time, I have configured the system such that a reservation can only have one unique available business hour ID. However, I am still able to create two reservations for the

jakubjv's avatar
jakubjv's avatar gych2yrs agoLivewire
18
16
Last reply by gych 2yrs ago
jakubjv's avatar

Why form validation doesnt work? Livewire 3

Hello everyone, ihave a problem with validation of verification modal. I think i set up everything right, but when user insert verification code to modal and code is worng or less digts than 6, it wont show up any errors, modal close and display is shadow.. I will provide a code, maybe am missing something, its my first project with livewire so sorry if is it stupid question. T

jakubjv's avatar
jakubjv's avatar martinbean2yrs agoLivewire
7
1
Last reply by martinbean 2yrs ago
Lozza's avatar

The best way to access / iterate through a sub-relation

I don't like my code below.. please let me know the correct way to do it :-) I have the following model Booking with 2 step relationshp to TmpSeatAllocation Booking: public function Tickets() { return $this->hasMany(Ticket::class); } Ticket: public function TmpSeatAllocation() { return $this->hasOne(TmpSeatAllocation::class); } TmpSeatAll

Lozza's avatar
Lozza's avatar Lozza2yrs agoEloquent
4
1
Last reply by Lozza 2yrs ago
jakubjv's avatar

Dispatch modal window after creating reservation

Hello everyone! I have got questino about not working verification modal window. I am ttrying to do that, immediately after submitin reservation form, there will shows up modal window with input fiild for confirmation code, but it still doesnt work, iam beginner in that and its still my first project. I am trying this forum, if anyone can help me with that. This is mi booking c

jakubjv's avatar
jakubjv's avatar jakubjv2yrs agoLivewire
9
1
Last reply by jakubjv 2yrs ago
Lozza's avatar

Service for all processes

I am writing a theatre seat booking system and need to perform various functions such as generating an availability seating plan, reserving a seat during booking etc.. Whilst I've already written code to do this, I realise that it would be most efficient to control the entire functionality in a single process for all users but I know nothing about doing this! In Laravel, is the

Lozza's avatar
Lozza's avatar Snapey2yrs agoLaravel
19
1
Last reply by Snapey 2yrs ago
Alessio_S10's avatar

laravel destroy session after change language

I have a problem on a Laravel 10.x project I'll start by saying that I have always used the same procedure and have never had any problems of this type I have a multilingual site, customers arrive on the home page, make a transfer reservation by entering departure, Arrival and departure time when they press the "booking" button they are redirected to a summary page wh

Alessio_S10's avatar
Alessio_S10's avatar Alessio_S1...2yrs agoLaravel
0
1
jakubjv's avatar

Laravel/livewire

Hello, i have got problem, that if in dropdwon just one record left i cant submit reservation and it writes me "available_business_hour_id": ["The available business hour id field is required."] but i have available_business_hour_id for that reservation, every available time has his own id .. so this is blade <section id="booking"> <di

jakubjv's avatar
jakubjv's avatar jakubjv2yrs agoLaravel
6
1
Last reply by jakubjv 2yrs ago
dev22's avatar

Generate Capacity Report

Hi, Everyone Date Pick Up Return Midnight Capacity 5/23/2023 33 37 241 5/24/2023 49 27 263 5/25/2023 65 36 292 Ok so i have the above condition, I want to generate a report using laravel which is Capacity report, what i want to get this report, user will enter from & to date in form and based on that dates i will user the date

dev22's avatar
dev22's avatar jlrdw2yrs agoLaravel
1
1
Last reply by jlrdw 2yrs ago
enadabuzaid's avatar

AWS instance recommendation

Hello, can recommend to me what type of instance and what the best instance can use for the booking system using laravel ( small to medium project )

enadabuzaid's avatar
enadabuzaid's avatar enadabuzai...2yrs agoGuides
3
1
Last reply by enadabuzaid 2yrs ago
knached99's avatar

Stripe Webhooks not working

I'm implementing a stripe checkout for my client who's a limousine booking company. I need to insert data into the database after a successful Stripe transaction but it appears that my webhook is not being called at all. I've been trying to figure this out for 5 hours but couldn't. Any help is much appreciated! As far as code, here is my endpoint in web.php: Route::post('/strip

knached99's avatar
knached99's avatar martinbean2yrs agoLaravel
32
8,583
Last reply by martinbean 2yrs ago
hamzajamshed251's avatar

How can i disable multiple dates array in input datetime?

Hi There, i have a issue related to my booking dates basically i want to disable datetime in calender. i have two types of datetime startdatetime and enddatetime so whenever booking happened it will save the dates into database and i get the array from backend and want to disable those datetime in calender <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6

hamzajamshed251's avatar
hamzajamshed251's avatar vincent150...2yrs agoLaravel
1
1
Last reply by vincent15000 2yrs ago
nooblaravel's avatar

stripe multi curency

Hi guys , i have a problem with stripe PaymentIntent always take my payments in euro. I have multi currency, and show good the dolars conversion on check out, but on stripe is reconvert in euro. is this Ok? This is my stripe getaway $this->getPaymentIntent(); $payment = new Payment(); $payment->booking_id = $booking->id; $payment->payment_gateway = $thi

nooblaravel's avatar
nooblaravel's avatar nooblarave...2yrs agoLaravel
0
1
TimKuhl's avatar

Missing features in Livewire 3

Now when you can navigate in L3 as in a SPA without full browser reload and even persist some parts of website during navigation (audio/video/chat/...), it seems to be more and more similar to the Inertia experience. Yes, the payload on each request is bigger than in case of Inertia which is more surgical most of the time, and perhaps a bit faster. But this is not a concern of

TimKuhl's avatar
TimKuhl's avatar x7ryan2yrs agoLivewire
5
1
Last reply by x7ryan 2yrs ago
jordantsap's avatar

how to structure db objects for complex relationships project

I am building a pretty complex project that has both ordering functionality and booking functionality, this means that should have objects/models for listings for product, company, type(company_type, product_type), category model, Accommodation, hotel and room model. Some usefull to understand packages I use their functions are: bumbummen99/shoppingcart spatie/laravel-permissio

jordantsap's avatar
jordantsap's avatar jordantsap2yrs agoEloquent
2
1
Last reply by jordantsap 2yrs ago
Hassankhan's avatar

Async Js and Session Laravel with Laragone

Hi Everyone hope you are doing well i am facing issue that i am store items into cart when i store cart item single click until the response is 200 it work fine when i store cart items in multiple clicks it store item only first click item <script> $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr(

Hassankhan's avatar
Hassankhan's avatar Hassankhan2yrs agoJavaScript
0
1
pekkagaiser's avatar

Most Laravel-y way to be verbose about errors happening inside a model?

Suppose I have a model Rebates that has a calculatePrice($price, $duration) method that adjusts a price for a booking based on the rebate data it contains. Sometimes, there can be faulty incoming data that cannot be validated/filtered out previously (say, the rebate doesn't apply to this combination of price and duration). In other contexts, one might return false in this case

pekkagaiser's avatar
pekkagaiser's avatar Snapey2yrs agoLaravel
2
1
Last reply by Snapey 2yrs ago
Ngozistephen's avatar

SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bookings.start_date

I am getting this error message in my test. How can i solve this error SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: bookings.start_date (Connection: sqlite, SQL: insert into "booking s" ("apartment_id", "user_id", "total_price", "updated_at", "created_at") values (1, 2, 0, 2023-05-29

Ngozistephen's avatar
Ngozistephen's avatar Tray23yrs agoLaravel
6
1
Last reply by Tray2 3yrs ago
Freddie19's avatar

Data 'status' not updated

I have a code that doesn't work, so I want to update one of the columns, namely 'status' by looping because it will update the data, maybe not only 1, I also happen to have the same 2 status columns, namely in bookings, and in tenants, but I I only want to retrieve status data on bookings, how do I fix this? $overdue = Booking::leftJoin('tenants', 'tenants.id', 'bookings.tenant

Freddie19's avatar
Freddie19's avatar LaryAI3yrs agoLaravel
1
1
Last reply by LaryAI 3yrs ago
Freddie19's avatar

Range time query for email notification

Hello everyone, i'm trying to solve this but keep not solved, so this result will be true if start_time has 30 minutes left before the current time is the same as start_time, but I want the code to be true when it is less than equal to 30 minutes, meaning from 30 until now the time is the same as start_time, it will be executed continuously . public function getReminder() {

Freddie19's avatar
Freddie19's avatar LaryAI3yrs agoLaravel
1
1
Last reply by LaryAI 3yrs ago
hjortur17's avatar

What is the best practice in this scenario?

Hi, hopefully can someone assist me with this. I'm wondering is there a way to keep a rental in some kind of memory while I redirect the customer to payment website and when he comes back I confirm the booking? Because right now, I'm creating the rental before I send them to the payment site and when they have paid I updated the booking and set paid to true. And sometime the cu

hjortur17's avatar
hjortur17's avatar jsanwo643yrs agoLaravel
5
2
Last reply by jsanwo64 3yrs ago
hjortur17's avatar

Not able to redirect after PUT/PATCH request

Hi, I'm trying to update a booking but when I try to redirect back with a flash message I get this error The PUT method is not supported for route dashboard/reservations/edit/53. Supported methods: GET, HEAD.. It looks like it's trying to submit a PUT request to the Redirect::back(). But when I hard-refresh the site, I get the flash message plus the status of the booking get's

hjortur17's avatar
hjortur17's avatar dcx3yrs agoLaravel
2
1
Last reply by dcx 3yrs ago
uniqueginun's avatar

Laravel echo authenticating private channel return 401

I am building SPA using Vue Cli app and Laravel 9 API. and I want to use Pusher to send realtime notification. I followed laravel docs for integration with Pusher. but the endpoint broadcasting/auth return 401. I am using Sanctum SPA cookie based authentication and all my protected api routes work fine except for this one. main.ts import Echo from 'laravel-echo'; import Pusher

uniqueginun's avatar
uniqueginun's avatar uniqueginu...3yrs agoLaravel
1
1
Last reply by uniqueginun 3yrs ago
Atari's avatar

To use Polymorphic or not to use?

tdlr: polymorphic associations could solve my problem, but it doesnt feel correct, please help. I have a project where products can be purchased. Each product has a type and requires different settings/properties for each type. Its not product attributes for variants but more like product meta. For instance there could be a product of type booking, so when a product of type boo

Atari's avatar
Atari's avatar LaryAI3yrs agoEloquent
1
1
Last reply by LaryAI 3yrs ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.