Support the ongoing development of Laravel.io →

4,311 Threads

Setting permissions to roles

Hi everyone! I'm a newbie in Laravel, and i'm right now i'm working on the Homestead vm using Larave...

0 Likes
1 Replies

Model to View as JSON to JQuery

I created a model and extracted data using the model from database via controller Like $data=datab...

0 Likes
1 Replies

Elasticquent - Error with function putMapping

Hello everyone, I use the extension fairholm/elasticquent. When I use the function putMapping, I hav...

0 Likes
0 Replies
posted 9 years ago

Help with eloquent orm out side of laravel.

I am using eloquent orm with codeigniter 3. Working perfect but problem is how to access errors like...

0 Likes
0 Replies
posted 9 years ago

Eloquent 1-n

hi, I try to do a very simple query without success. I have a table "societe" with field p...

0 Likes
3 Replies
Solved
posted 9 years ago

Extending ELoquent

I was tinkering around with larval, getting ready to build an API for Ember Js. In my models I exten...

0 Likes
0 Replies

All Your Design Patterns Are Belong To Us

One team I'm on right now is in the process of building a massive application on Laravel. As we've a...

0 Likes
0 Replies

How to detach a single record in a pivot table

I currently have a pivot table (users_toys) joining a users table and toys table. There are 4 column...

0 Likes
6 Replies
posted 9 years ago

Get properties of related models

I've a user model which has a 1:1 relation with a UserInfo model class User extends Model implements...

0 Likes
0 Replies
posted 9 years ago

substring inside query

how to do substring inside query if the name are kevin_001 User::where(substr('name', 0, strpos('nam...

0 Likes
1 Replies

Laravel 5.1 lists() inconsistency? (Eloquent vs Query Builder)

I'm in the process of upgrading to 5.1 and I'm really liking the changes that have been made, and th...

0 Likes
1 Replies

Laravel 4.2 Model not being loaded

I have been using Laravel for a couple of years now and whenever I have created a model it gets auto...

0 Likes
2 Replies
posted 9 years ago

Convert raw SQL using WhereIn to Eloquent

Hi all! Hope you can help me converting this raw sql because the converted one I have is not working...

0 Likes
0 Replies

Save MSSQL Binary Type Data using Eloquent

Sorry if this has already been addressed, but I didn't find anything by searching Binary Data on the...

0 Likes
0 Replies

Using Auth on a different connection or database.

I'm very new to Laravel and am currently building a multi-tenant app. Basically when anyone signs up...

0 Likes
0 Replies
posted 9 years ago

Query using with + global scope

I have the following code: $clients = Clients::with("clientGroups.Profiles")->get(); T...

0 Likes
2 Replies
posted 9 years ago

Eloquent ORM: Get calculated value from fields that belong to different tables

Hi there I have two tables: Subscriptions and Partners. How can I use Eloquent to multiply two field...

0 Likes
1 Replies

having query function not matching.

HI, Ive got a location query that Im running and he having is not matching, on mysql or Sqlite , Now...

0 Likes
0 Replies
posted 9 years ago

How to get a collection that match a collection of tags (via a pivot table)?

I have an "articles" table and a "tags" table. Both are related in eloquent via...

0 Likes
0 Replies

DB binding error

HI Im building a package that has mapping, now one of the function it needs to be able to do and que...

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.