Support the ongoing development of Laravel.io →

4,586 Threads

Increment in Query Builder

DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...

0 Likes
1 Replies
Solved
posted 10 years ago

Where do I put this logic?

I'm struggling with where to put logic like this? http://laravel.io/bin/Qz41 I have a multi domain a...

0 Likes
1 Replies
posted 10 years ago

Making a Forum

how could i display the forum topics from the database to the page?

0 Likes
1 Replies

best way to save a model with it's relasion

I have two tables products (model: Products) product_common_auction (model: ProductCommonAuction...

0 Likes
0 Replies
posted 10 years ago

How to make in category database subcategory

Hi i have two tables CATEGORY and PRODUCT i need SUBCATEGORY and then PRODUCT this is my database m...

0 Likes
2 Replies

Model::find($id) is being called 2 times to get related records

I am running the below Controller method which gets data from a specific Campaign table by campaign_...

0 Likes
2 Replies

Change data connection Laravel 4

Guys, good afternoon! Soon die and I can not solve a problem I'm having! I want some way I can chang...

0 Likes
5 Replies
posted 10 years ago

Seeder just insert one record instead of two

Hi, I'm new in Laravel. I learn Laravel from "Learning Laravel 4 Application Development"....

0 Likes
2 Replies

Querying a Many-to-Many Relationship

I might be overlooking this in the docs (Laravel 4.0) but I need to know how to query a many-to-many...

0 Likes
3 Replies

Laravel using wrong table name?

Here's my Level model: class Level extends Eloquent { protected $table = "levels"; }...

0 Likes
4 Replies
Solved

Trigger 500 error from the start.php file

In the ./application/start.php file, is there a way to respond with the 500 error page here, before...

0 Likes
2 Replies

Laravel environments

Hey, I'm working on an app made on Laravel where i have to host multiple domains. It's an Project Ma...

0 Likes
4 Replies
posted 10 years ago

Help with relation query

Hello, My query is returning the wrong product. My Order.php has a relation of public function items...

0 Likes
2 Replies
Solved

Non-static method Confirm::posts() should not be called statically, assuming $this from incompatible context

These are my models User public function posts() { return $this->hasMany('Post'); } P...

0 Likes
5 Replies
Solved

Combining two query (WhereIn with Where) x 2

$userCollection = DB::table('collections') ->whereIn('user_id', array())...

0 Likes
3 Replies
Solved

Cannot find records using ->where() and booleans

Hi, I'm having a problem. Using migrations I create the following field: $table->boolean('is_clos...

0 Likes
1 Replies
Solved

multiple queries in a scope function

HI I have recently posted this questions on stack overflow. I was hoping someone here would know the...

0 Likes
0 Replies

Issues with Eager Load With Limit & Variable

The following would give me collection without Items. $collectionList = Collection::where('user_id',...

0 Likes
7 Replies
Solved

Visible, Hidden, Fillable & Guarded with Foreign Keys

Hi, First question: What options should foreign keys use? Guarded? I have an Article object that has...

0 Likes
3 Replies
Solved

Migrations from 3rd party packages

Hi, What would be the best method to set up a script/command to run through general migrations as we...

0 Likes
2 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.