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...
I'm rewriting a site using Laravel and having problems with queries involving dates. This is a pre-L...
I have two tables news and comments. News can have many comments: //News public function comments()...
The timestamps are being filled in both the created_at and updated_at when a record is created in my...
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