Support the ongoing development of Laravel.io →

4,606 Threads

'orm' table name has 's' why?

##Hi guys, I created a table name in MySQL called "orm" I also created a model like this o...

0 Likes
2 Replies
posted 10 years ago

use select in load will lost data

my version is laravel 4.2 in mycode , I have got a Collection $serieses, and it has a relation named...

0 Likes
1 Replies

Proper use of custom methods in models - Scope, static, etc

Coming from Codeigniter, I'm used to placing all my database queries in the model. From what i've se...

0 Likes
1 Replies

Composite key

hi, im using this migration: Migration and this model: Model how do i specify the composite key in t...

0 Likes
1 Replies

who adding a fields to relationship Table in pivot table method using laravel ?

Hello For All :) I want to design an online store. For each category of productions, we would have i...

0 Likes
7 Replies

Laravel 4 Passing Multiple With Statements?

Hi Everyone Is it possible to pass multiple with statements in laravel? For example, in your functio...

0 Likes
2 Replies
Solved

Eloquent Queries

Hi all, It just a quick question about Eloquent and how it handles input data. The query builder as...

0 Likes
2 Replies
Solved

->take() producing no results

I'm getting a bunch of rows, like this: $raw = DB::table( 'objects' )->where( 'user_id', $user_id...

0 Likes
2 Replies

What is best way to make multilanguage website

How to make multi language website and pull all data pages from database? I see about Localisation b...

0 Likes
4 Replies
posted 10 years ago

Forge installs mysql 5.5 by default. How can I upgrade to mysql 5.6?

Sorry this is more like a question about forge, but I don't know where else might be a better place...

0 Likes
4 Replies
Solved

GroupBy only seems to accept my first property

Hello, I'm trying to group a result by multiple columns. Only my first property seems to be used. $a...

0 Likes
0 Replies
posted 10 years ago

Are migrations not able to inject classes like controllers can?

I've had a schema change on my application. I would like to use migrations to convert parts of the d...

0 Likes
0 Replies

Eloquent Model -> Relation to 2 Models

Hi, i have the following issue: I have 3 Models: Categories Products Shops Shops and Categories ar...

0 Likes
2 Replies
posted 10 years ago

Retrieve data based on pivot table

I need to retrieve data from a table based on the value of the pivot table.So how can i do it ??? Be...

0 Likes
0 Replies

Lazy Load second degree relationships

Hi guys, do any of the Eloquent guru's know if you can lazy load and filter further than one degree...

0 Likes
0 Replies

Record emails in DB

Is there an easy way for me to record all the emails sent via mandrill to also make a copy into my D...

0 Likes
0 Replies

DB::table()

Hy, I have some problem to use the "DB::table" expression. Here is my code : DB::table('pa...

0 Likes
4 Replies

Seems $this->post->fill()->save wont work in 5.0

Can anybody validate will hasOne work in such way: Post::find(1)->author->fill([ 'title' =...

0 Likes
0 Replies
posted 10 years ago

Schema builder does not support composite keys with auto-incrementing id fields?

Does the Schema builder not support this type of relationship? Pseudocode: Table: cities increments(...

0 Likes
3 Replies

Eloquent: Primary key with more then on field

Hello, I'm new to Laravel and PHP, but I really enjoy working with it :) I want to post, edit and de...

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

© 2025 Laravel.io - All rights reserved.