Skip to content

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 sta…

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://git…