Support the ongoing development of Laravel.io →

4,314 Threads

Insert Only Database - Dealing with Foreign Key Constraints

I've been working on a project recently, and I've hit a block in my database design. I'm required to...

0 Likes
4 Replies

undefined method \Database\Query\Builder::checkUserExists()

Guys, im getting this error, but i dont know why... And worser: i dont know how to solve. Im using l...

0 Likes
1 Replies

Multiple Table Inheritance?

I have User model. I also have 5 Profile Models these are sub-types of User: Manufacturer, Seller, C...

0 Likes
2 Replies

Setting DB connections

I am learning Laravel and am just practicing. I am creating a second connection to a database, so I...

0 Likes
4 Replies
Solved
posted 10 years ago

e-commerce tutorial

Hello, Im now learning laravel and in the end I want to build a sort of e-commerce solution for a to...

0 Likes
0 Replies

Relationships confusion

I'm a little confused with relationships and struggling to get it working, i guess in reverse order....

0 Likes
3 Replies

Repositories and Models

Hey all, I'm currently getting to grips with Repository patterns with Laravel after a nightmare of t...

0 Likes
4 Replies

Query results being dropped after collection creation & paginate bug ?

Hi guys, Starting to go crazy on that.... Behaviour: Query works and returns the results I want BUT...

0 Likes
0 Replies

Paginate problem

I create a table with paginate::simple. That work fine. When I edit a record I can return to the pag...

0 Likes
2 Replies

Laravel eloquent help?

Can someone help me convert this standard SQL into eloquent queries select main.name as main_name, s...

0 Likes
2 Replies
posted 11 years ago

namespaces

Is it possible to reference a full namespace? I mean using: use MyApp\Models; (this is not working...

0 Likes
3 Replies

How to return with function not in array

Hello, I have a table communications and a table agents. Each communication belong to an agent. I wo...

0 Likes
1 Replies

'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

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
posted 10 years ago

Default values in $attributes not mutated

Hi It seems that default values defined in $attributes are not being mutated before saving to the da...

0 Likes
1 Replies

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

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.