What is the correct way to grab a record and also include it's relationship data? Example User belon...
Hello, I am looking for any method for progession rate generation during the execution of the query....
I am having a huge database with millions of records in different tables. It all works fine when I a...
This tables are just for example. Let's say we have two tables: order_items(id int, name string, pri...
I have my user model and I have a custom composer package I am working on which creates a custom tab...
Hello. Im trying to make a website for trades. Every user will post items that he have for items tha...
Hello guys, i have hasMany relationship between two tables like this: Parameter::where('property_id'...
I need help with 2 queries. 1 First I am trying to get all Posts for a specific Category, I have a c...
I'm new to Laravel, and I'm loving the framework more and more everyday. I've only had one issue, an...
How to do with Laravel 5.1 Eloquent to get this: "SELECT cont FROM news" ?
At the moment I am writing a parser for exam result files. There are 3 model classes: Exam, Question...
I am building a back-end API with Laravel and need some help with a problem. Example I grab all my P...
I am currently converting a Cake app to laravel but ran into a problem and can't seem to find a solu...
Hello guys, I know this question sounds kind of silly, but let me explain. I (mostly frontend-dev) a...
I have a method for a scheduled system cleanup that goes through all the files in the "storage&...
How can I validate it? If I use: $res = DB::table('estacaohs') ->whereRaw($sql) -...
hi all, i have this query: $marche = DB::table('articolo') ->join('marca', 'articolo.id_marca',...
Hello, community. Can anybody help me with the count query? I have the pivot table with two fields →...
I'm trying to add an attribute to a model but can't access the model attributes when I call it. Deta...
I saw this format of datetime on a Json file recently. Having issues to convert this into a timestam...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community