I have a datetime attribute that I want to convert to Carbon and persist it to mysql as a Carbon obj...
User Model function comments(){ return $this->hasMany('Comment'); } function posts(){...
Hey guys, Since on my old topic (http://forumsarchive.laravel.io/viewtopic.php?id=10766) the links a...
Hello everyone, I made a code which i used to check if a table exists or not. If not the code would...
I have a polymorphic relationship set up between the comments and the video / images tables. Now i w...
Ahoi, want to use static methods and public method (of Instance) from a Model. have a controller : c...
how to call controller method to model? OrderController: public function mailInvoice($id) { //...
Hi, I'm using Eloquent ORM outside of laravel. Its with SLIM Framework. I'm trying to control the nu...
Hello, I am looking to improve my code for better performance, how would you optimize this code: pub...
Hi, I have a small question, I have a website where they are teachers who can add students. Students...
I have this code: $sqlInsert = array( array('id'=>1, 'temp'=>1), array('id'=>2, 'te...
I have 2 tables: User [ id, name, address_id, active ] Address [ line1, line2, city, county, postcod...
I have a questions table, and a tags table. I want to fetch all questions from tags of a given quest...
Hi all, I was trying to add gravatars to all my users, so i created the function getImageAttribute()...
Hi all, Due to the lack of "WHERE IN" for joins, I'm trying to add a bracketed 'OR WHERE'...
users : id, username, password images : id, user_id, isprofile (0,1) and so on Image model publi...
Hey there, I want to respond to a GET request for an object id with the requested object and all its...
I find no way to connect with informix through eloquent?
I found an interesting bug which I'll share here. Hopefully it will save someone time. Consider this...
Sorry for this crosspost, I already asked my question on Laracast, but no response came, that's why...
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