How can I try to using cache for all of Eloquent query. Example: $users = User::remember(10)->get...
Hello everyone! I have a little problem to register a user. Here is the function that processes the...
class Batch extends Eloquent { public function coupons() { return $this->hasMany('Cou...
Hello All, So I have some weirdness happening. I'm trying to do a search on a track database that I...
I need to execute a query with group by. But the group by is not for a field. I need to group by wit...
I have 4 tables TableA hasMany TableC TableB hasMany TableC TableC hasMany TableD I want to connect...
Hi ! I read that L3 didn't support composite primary key, is it the same for L4.1 ? In my case it's...
In relationship from the questions I have ask previously, Question 1: Inserting selected fields from...
I would like to have the following models: Employee, Agent, Client. Since half of all the fields and...
good morning, someone who can help me, I need to create a route between father son model to model, l...
I am struggling to understand how laravel works and I have a very difficult time with it Model - Use...
Hi again. I have 3 tabs in a page. I have 3 queries and thus get the results and make 3 different pa...
Hello, one of the requirements on the application I am developing is to have it to use an arbitrary...
Hi, I've been looking for examples for a while and found out that the docs are lacking about this. H...
DB::table('users') ->join('contacts', function($join) { $join->on('users.id', '=', 'contacts.u...
I have two models with relationship: City and Events. In the controller i have this: $cities = City:...
Hi there, I would like to insert a post and its images with laravels ORM. Posts title tekst Images...
Hi all, I'm creating a drop down list that gets populated using data from a database. Everything wor...
Hello. I'm looking for a way to create dynamic appends to a model. right now i have something like p...
I did a simple query like: $query = "sdsad'sa"; Spot::where('title', 'like', '%'.$query.'%...
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