skip to Main Content

Laravel Query With sqlsrv

i have a query to fetch all data and these data are support tickets, each support ticket has many comments, i want to order these data by last comment if exists else order by ticket created date any idea what…

VIEW QUESTION

Laravel Sanctum CSRF Protection

So I am trying to configure Sanctum so that I would have CSRF protection for my API routes so that only my SPA's frontend would be able to make requests to it. After following the documentation and doing the instructions…

VIEW QUESTION

Laravel – groupby sum and count tickets

I am learning to use groupBy. In my exercise, I must count the number of tickets that were sold and add the total money collected. $tickets = Ingresostaquilla::groupBy('tipo') ->selectRaw('count(*) as quantity, tipo') ->get(); I did the count by type of…

VIEW QUESTION
Back To Top
Search