can i get data in single query ? $author = Author::where('id', '=', $authorId) ->where('salt', '=...
Hello, I'm very new to laravel and am converting an application I wrote earlier in very unstructured...
Hi, i use the following code to get my data with Eloquent: $campaign = Campaign::find(1)->with(...
Hello, I am facing a problem with joining two tables using Eloquent for multiple database connection...
I'm attempting to make a relationship between my roster table and roster_statuses table. I'm wonderi...
Hi guys, How do I make sure that an authenticated user only can edit their own submissions? Do I hav...
I have this $location = GeoIP::getLocation('46.188.214.51'); my table looks like this | id | mood...
I have a users table and profile (one to one) table. I need data from both to display on their publi...
I'm sure this is a basic question, but I have the following: Model "A" which has many of &...
Hi, I do not know how to make a relationship, my structure communities id - integer name - s...
Hi, I'm creating an online shop and I had obviously to use many to many relationships. I've a proble...
I am trying to connect to mongo db using the eloquent module outside of laravel, i can get it to con...
When i try to do union with paginate i get this error: Cardinality violation: 1222 The used SELECT s...
Well, in my view I've a foreach and I display the id of a product with {{$look->item1_id}} but i...
Hi, I have just started playing with Laravel but am having a bit of trouble optimising this query us...
hello i have sql how can i write in Laravel this sql ? please help. (SELECT goods_id, name, img, ano...
I am trying to refresh the migration using this command. php artisan migrate:refresh My migrations a...
I have changed format date that way: BaseModel.php: use Carbon\Carbon; class BaseModel extends \Elo...
Hello, I have built a query with the Query Builder and I monitor what SQL is actually executed by du...
I have a problem with using morphMany relations in combination with lists in my model. I do have a M...
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