Support the ongoing development of Laravel.io →

4,599 Threads

posted 10 years ago

Manually add new items do custom Collection

Hi all! I'm extending a Model Collection to customize some features but I have to manual insert new...

0 Likes
0 Replies

Creating helper method for similar database query -- class name as variable variable?

I'm getting started with Laravel, and learning as I go. I'd like to know the best way to tackle this...

0 Likes
4 Replies
Solved

Eloquent + Object loading

Hello everyone, i have a new project where i developed a different way to manage sessions. So i crea...

0 Likes
0 Replies

Query Builder - removed "where clause" won't remove related bindings

This problem is slightly related to my previous post but NOT identical: http://laravel.io/forum/06-1...

0 Likes
1 Replies
Solved

are there way to use "having In" statement;

i'm trying to run this code $AdvanceRequests=new AdvanceRequest(); $AdvanceRequests= $AdvanceReque...

0 Likes
0 Replies

92fiveapp can't save projects and Why can't create new model

Hi ,Guys Last night i was working on this project. Actually, am new bee to larvarel but , thanks to...

0 Likes
0 Replies

Looking for an Eloquent query to pull records by date range

I have a generic user table, with created_at and updated_at timestamp columns. I'm curious if there...

0 Likes
1 Replies
posted 10 years ago

What is wrong with this query?

Hi all, I have the following query: $posts = Post::with( 'comments' => function($c) {...

0 Likes
1 Replies

Using Relationships correctly - Team, User and Relation table

Hello, i have three database tables: User, Team and Relation. A user can be a member in multiple tea...

0 Likes
0 Replies

Lock a stock quantity so others can't buy.

Hello All, I am new to the Laravel, and to web Development too, but was very impressed with the fram...

0 Likes
1 Replies
posted 10 years ago

Update multiple rows at once

I've got a form that needs to update multiple rows with different id's at once. Like a spreadsheet....

0 Likes
1 Replies

Multi-tenancy - One database multiple tables

I want to create a multi tenancy application using Laravel. I am using the one database, multiple te...

0 Likes
1 Replies
posted 10 years ago

MSSQL - SELECT failed because the following SET options have incorrect settings: 'ANSI_NULLS'

As always run the SET of solution? Problem: SELECT failed because the following SET options have inc...

0 Likes
1 Replies
posted 10 years ago

$connection property not working

Why this does not work? class Condition extends Eloquent{ protected $connection = 'another-databas...

0 Likes
0 Replies

Query Builder - anonymous function question

Hi there. Here is my code: $personelList = App::make('MedPersonel') ->with( array('servicePri...

0 Likes
0 Replies

->get(); and foreach

Hey, i'm a bit of a newbie, and until now, everytime i had to pull more than 1 result from the datab...

0 Likes
1 Replies

Problems inserting record using Eloquent, Call to undefined method Illuminate\Database\Eloquent\Collection::save()

http://laravel.io/bin/Qd4Ma I can't figure out what is wrong about the db relationships that I have...

0 Likes
1 Replies

Naming Convention For Modal And Database Table

Hello All I am confused with naming convention in laravel for model name and database table name.I h...

0 Likes
0 Replies

Eloquent chain relations

Hi all, I have tables Table Fields users id posts id, user_id, status_id status...

0 Likes
2 Replies
Solved

Changin session driver on the fly

Hi guys, I have a problem. I use two database in my application. I would like to change session driv...

0 Likes
0 Replies

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.