Hi Guys, I have a query which it's toSql result is: select * from `jobs` left join `locations` on `j...
Hi i was checking my develop and i saw something wrong, the develop works apparently fine but just w...
I'm trying to relate a user model and a comments model. My user model has the following code.. clas...
This may be a weird question, but is there a way to seed the db from a migration? The reason is that...
DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...
I have two tables products (model: Products) product_common_auction (model: ProductCommonAuction...
I am running the below Controller method which gets data from a specific Campaign table by campaign_...
table data id name type 1 Plain PATTERN 2 Strip PATTERN 3 Checker PATTERN 7 Oxford FABRIC 8 Twill FA...
Hello Artisans! I'm working on a project that is quite complex and I'm trying to find the best solut...
I'm new to Laravel put like what I see so far. Here's my issue. In my example app I have 2 models...
I am building app for enterprise their are three tables: users table (belong to company) companies...
I might be overlooking this in the docs (Laravel 4.0) but I need to know how to query a many-to-many...
Here's my Level model: class Level extends Eloquent { protected $table = "levels"; }...
These are my models User public function posts() { return $this->hasMany('Post'); } P...
$userCollection = DB::table('collections') ->whereIn('user_id', array())...
Hi, I'm having a problem. Using migrations I create the following field: $table->boolean('is_clos...
HI I have recently posted this questions on stack overflow. I was hoping someone here would know the...
The following would give me collection without Items. $collectionList = Collection::where('user_id',...
Has anyone thought of extending this method? For example I have a couple of models with the followin...
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