Hi I've got 2 tables. THe first one is the full listed option with (id, name). The second one is the...
Consider the following setup (and let's not discuss wether it makes sense as it's only an example)....
I have Posts, that are linked to many Tags in a many-to-many relationship. I also have an array of T...
Hi, maybe i'm missing something, but i'm having a hard time figuring out how to save/update models w...
Hi All, I can figure out how to save multiple items with one-to-many :( $order = new Order; $order-...
if i do $browsenode->products()->save($product); thanks in advance dudi
Hi Guys, i have a problem with my table structure and the query builder, as i am not able to build t...
Hello, Here is my NewSite.php command file: <?php use Illuminate\Console\Command; use Symfony\Co...
I've been setting custom attributes to collection objects. For example; Looping through $items check...
When we do a relationship (e.g. One to One): $phone = User::find(1)->phone; there are 2 queries:...
This one has been picking my brain for a while and I have tried multiple methods but can't seem to m...
What is the best way to write a unit test for a class which depends on an Eloquent model with relati...
Hey guys, I've got this view, and im passing a variable to it, however it returns an error to me. Th...
Sorry if the title is confusing. I am finding it difficult to word this question. Basically I have a...
Hi everyone, I'm building a website where every posts has comments. Each comments have upvotes/downv...
I have a postgres function that measures the distance between two points. I want to use this as a te...
Is possible to query a postgres view by declaring oi eloquent class protected $table = 'view_name';...
I have a situation where a user can upload profile photos to an album: there is a "users"...
I'm not 100% sure if this is a bug in Ardent or Laravel, but I cannot seem to get the email validati...
I have got the following array from my form. Now I want to store those data in a table. Array: Array...
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