Support the ongoing development of Laravel.io →

4,603 Threads

In mysql.log only PREPARE, why?

I try run this code: $rows = DB::table(CustomerNumber::TABLE) ->join(NumberGroup::TABLE, functio...

0 Likes
0 Replies

Search based on provided input

Is there a clever way of composing an eloquent search where it only applies values sent thought and...

0 Likes
1 Replies

Eagerloader with no select *

I have the query like this $article = new Article(); $query = $article->with('user')...

0 Likes
3 Replies

Laravel 4 - Too much logic in my view template?

Hello, I created a search functionality within my Laravel project - the user can search for teamname...

0 Likes
3 Replies
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

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.