Skip to content

Tag: laravel

searching in large tables in laravel

I have some items from a table and I want to search for each item’s id in other 4 tables (that currently have around 5k-6k rows but will be larger in the future). I have to search through all tables (as above) and if I don’t find the item in one of the tables, I keep searching in the others.

Goutte laravel web scrap from all table data

I need to scrap all Th and td data return like an array. Result showing only first Th/td data. result showing only first Th/td, need to all row: Answer The provided code is looping every table ($page->filter(‘table’)->each) and selecting only a single tr > th. But what you want is to loop…

Eloquent relationship returns nothing

I am trying to make a system that allow users to create playlists which add on it movies there favorites movies or songs. I named the main model “Top”. I also have models : User, Category, Liste_top (this name is bad but it make de junctions beetween a Top and a Movie/Song. A better name, I guess,…

Laravel migrate ends up in wrong database

I have the following settings in .env When I run Everything seems to be ok. But when I look at my target database “unwa”, it is empty. A die and dump revealed, that I was connected to another database “auction” that happens to be the first (alphabetically) database. I find all my table…