Skip to content

Tag: php

Return a view with Laravel Octane Route

I’m trying to use Octane routing with Laravel in the routes/web.php file. The code above works, but how can I return a view with data. I tried many things, but nothing is working. Is it possible to return views like the Route facade with Octane ? Thank’s for help ! Answer Laravel has a lot of magi…

select all records and the rest

here is a simple mysqli query to select specific records from my mysql database: The question is: How can I get (best practices) all the other records, which will not be selected with this query filter? Answer Running successive, more or less identical, queries in a loop is fundamentally a bad way to do thing…