Hello, here is my scenario: TABLE iten id iname TABLE profile id pname PIVOT TABLE profile_iten prof...
Greetings. I am having trouble with a MassAssignmentException. I was following along Jeffrey Way's v...
Is there any way to say: Model::delete()->where('whatever', '=', 'whatever'):
Hi there! I have a form like this (here I only present some of the the inputs): {!! Form::model($spe...
Hello, I've been strugling to solve the Eloquent Inheritence problem but haven't found a solution ye...
Simple one: Should pivot tables use an auto_incrementing primary key id column? I can't think of a u...
Hi everyone!, I try and search but i cannot make this with eloquent I made this without eloquent, bu...
Hi guys, I'm a little confused and hope someone can clarify for me. I need the following models, but...
I have a resource route in my application and I think the update method is never called because ther...
I have 3 tables: id | name 1 | Men >80kg 2 | Women >80kg...
My tables: products, attributes, attribute_product What I work on: search module What I need: produc...
Hi all, i'm struggling with setting up my model relations. I have following Models: User Module Righ...
Hello, I an have difficulty to understand how i cans check if a user has payed before accessing an i...
[2015-07-27 18:29:50] product.ERROR: exception 'RuntimeException' with message 'Can't swap PDO insta...
I've asked this question on IRC and stackoverflow, but I may have described it wrong or too complica...
I am trying to solve mine N+1 problems with SQL queries. I have managed to reduce the number of quer...
Hey guys, Im using the code: $events = Event::where( 'accepted', 1 ) ->with( [ 'club.city', 'o...
I was under the impression that $hidden field in the Model class prevented information from being re...
I have a datetime that I am trying to use with diffForHumans(). I added the following to my Eloquent...
In Laravel 5.2 I made a folder app/Models. This is one of my models: app/Models/Pin.php namespace Ap...
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