In all examples I see pivot with tables relationship. Is it possible: I have result from one table [...
Laravel 5. I have 3 related tables. **Posts** user_id ... ... **Users** id ... ... **Tags** id nam...
Hi, it may be an evident question but i can find the answer in the documentation. who can i order a...
Hello, I have a four different tables/models I'm trying to define relationships for and am having tr...
So i have User model and Articles model. When i return User::all()->toJson(); i get only user atr...
So, I got sick of reinventing multi tenancy over and over again. I got so sick of it in fact, that I...
Hi gues i am working on a login functionality that increments the "no of login times" tabl...
I am querying a table and I wonder why Laravel make a count(*) query before my query that spend addi...
jeanali liked this thread
Hi Guys, I'm recently decided to make a switch to start coding with Laravel. I will try to specify m...
Example in the docs: $user->roles()->attach([1 => ['attribute1' => 'value1'], 2, 3]); So...
Hello, I need convert query from mysql to eloquent mysql Query SELECT count('id_sale') FROM sales J...
I'm trying to write this first piece of line in Laravel. I thought I got it right, but not. I hope t...
I'm trying to see if the form has been posted but this method does not seem to work if(Request::is_g...
There is one problem which I can't solve. I need to show a response only for users whose user_id was...
I'm using CURL to process data that is sent to an API cross site. When I get the data back to displa...
I am using the expedia API and I can send request using CURL. Using Laravel 5, am I better to stick...
I have in my model several tables where the primary key it's not autoincremental, but it's a varchar...
#Background My Controller is loading several items (from an Eloquent Model) and passing them into th...
I have a web page that lists events, it is split into 2 categories: This week (today is FRIDAY so t...
I have a model with a belongsToMany relationship with an additional pivot column. public functio...
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