Support the ongoing development of Laravel.io →

4,606 Threads

posted 10 years ago

How to get data from many tables by Eloquent ORM and not use primary key ?

Hi everybody. I have A,B,C,D 4 tables. A:id B:id,A_id,C_id C:id D:id,C_id I want to get da...

0 Likes
4 Replies

Eloquent construct format column

Hey guys. I have a question, is there a way to do some custom stuff over the values that eloquent re...

0 Likes
0 Replies

Trying to collect data from a many-to-many relationship

UPDATE 09/06/15 Hi, i'm quite new to Laravel, I'm trying to perform a query in Laravel 4 with Eloque...

0 Likes
3 Replies

Get featured listings from sub categories (while parent category)

Hello guys, I'm trying to show featured listings from sub categories in a category view. I can check...

0 Likes
3 Replies

Best practice for creating global variables (values pulled from database) in Laravel 5?

Hi, I need to have some global variables (values pulled from database) that are accessible through o...

0 Likes
1 Replies

Laravel 5 - Query Exception, wrong table used

Hi. I have a problem using the built in user support. I created a table "user" in my datab...

0 Likes
3 Replies

FatalErrorException in compiled.php line 9437: Class 'User' not found

I am trying to query the database to get all suggestions along with the users table information howe...

0 Likes
2 Replies
Solved

Laravel 5 - Routing with optional prefixes

I would appreciate some help with routing in Laravel 5. I've got three models: ReasearchLine, Reasea...

0 Likes
1 Replies

Changing Database between Tests

I have a model that i like to unit test. The majority of methods use standard database functions. On...

0 Likes
2 Replies
Solved

Eloquent Union Laravel 5

hello there, i am newbie there. im working with laravel 5, and i got a problem when i developed my w...

0 Likes
0 Replies

authntication/middleware

hello, i'm trying to create an app that contain admin-side and client-side here is the descritpion o...

0 Likes
2 Replies
posted 10 years ago

Conflicting table error

I am trying to set up my tables and wasn't getting my data into the table and tried doing DB:table('...

0 Likes
4 Replies
Solved

Dynamic menu and submenu

I'm having a hard time getting my dynamic menu to work, it seems the array returned by database is n...

0 Likes
5 Replies
Solved

CI to Laravel and migration

hi I'm kindly new in this community and I have a question about laravel I have already an applicatio...

0 Likes
1 Replies

to get the path of database.php

i am using laravel 5 framework, need to get the path of database.php which is in config folder.. i t...

0 Likes
1 Replies

How to setup Eloquent Models for self-joins.

I have a Contact(contacts) Model. I have a pivot Model ContactContact(contact_contact). I am trying...

0 Likes
6 Replies

if more than 2 column selected in list

I have this eloquent model query public function getemployee(){ $id = $_POST['id'];...

0 Likes
4 Replies

Laravel 5 Password Reset Problems

I'm having two problems resetting my password in Laravel 5: I usually get an error saying the user...

0 Likes
2 Replies
posted 10 years ago

Query Builder (joins,orOn,where,orWhere)

I have this query! $query = $capsule::table('arrowchat')->join('users',function($join){ $join...

guarnieri007 liked this thread

1 Likes
0 Replies

Recaptcha V2 Dashes

Beginner's question... I've been using greggilbert/recaptcha for a contact form. My $rules for the f...

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.

© 2025 Laravel.io - All rights reserved.