Skip to content
Advertisement

Tag: laravel

Using multi where queries Laravel relationships

I have two tables (Table1, Table2). I want to print the sum of the records whose properties match Table1 in Table2 while listing the Table1 table. My two tables contain very large records, performance is important to me. I’m adding the sample database pictures: Thank you. Answer First, add below use statement to the top of your controller: Now, If

Laravel online status

I have made custom middleware to track user online status but it has an issue, I can see my own online status but I always see other users as offline while they are not. Code Middleware class …

new laravel package not recognized

I was writing my first laravel package, so I could use it and understand how packages work and learn how to write packages and etc. But my project didn’t recognize the package that I wrote. Here is my package Github link: https://github.com/IIIphr/Shamsi_Calendar And this is my main project: https://github.com/IIIphr/aimeos_shamsi I use this command to add my package to the app:

Add to cart multiple tickets of single competitions in PHP Laravel

I have a website prospectcompetitions.co.uk. I want to add multiple tickets of single competitions into cart. Every single competition consist of multilple tickets. if a user select 3 tickets then add them to cart so that user can add multiple tickets of single competitions and multiple tickets of multiple competitions please have a look prospectcompetitions.co.uk Answer Basically We Used 2D

Advertisement