Support the ongoing development of Laravel.io →

4,606 Threads

(Please help me :( )Column Values Not Showing in Show Page

Hi, I'm having a problem right now. Please help me. I have 2 main page. The Homepage(index.blade.php...

0 Likes
4 Replies

eloquent equivalent of SQL_CALC_FOUND_ROWS

I've been using Eloquent in a project outside of Laravel, and I needed pagination, so I built my own...

0 Likes
2 Replies

super Easy Global Scope definition

If you ever created complex global scope constraint, you must have faced a challenge with defining r...

0 Likes
0 Replies

Help with HasOneThrough method (i think?)

Fairly new to Laravel having been away from PHP, and coding in general, for about 6 years. I've got...

0 Likes
0 Replies

laravel 5.1 retuns garbled charachers from mysql

I am new to laravel framework. I am using Homestead as my development environment and everything wor...

0 Likes
2 Replies

Multiple data bases or best practice

Hello, im having a logic problem, sorry if this is not the place to put this. Im working on an app f...

0 Likes
4 Replies

can't change users table name to members

So I changed the users table to members in a laravel 5 application. I also changed the config/Auth f...

0 Likes
5 Replies

Insert and delete from one method

I am using laravel 5.1. Now I have to move a data of row from table A to table B using primary key.H...

0 Likes
0 Replies

How to do query caching with dependencies like in Yii2 ?

Let's say that I want to cache some query based on some condition ( dependency ). For example, I hav...

0 Likes
0 Replies

Work out what page a record is on using pagination

I would like to be able to locate a record by scrolling to the "page" it is on. Obviously...

0 Likes
0 Replies

How can I search multiple tables in laravel 5

I am able to search any column in one table at a time using the following code <?php namespace A...

0 Likes
1 Replies

(integer) cast must be done in Homestead for Controller parameter

I am having a hard time searching for the cause of a discrepancy between my local dev environment (H...

0 Likes
4 Replies
posted 10 years ago

Laravel joins using different databases query

I am constructing this query in my Laravel controller; $payments = DB::table('payments')->leftJoi...

0 Likes
1 Replies

eloquent relationship many-to-many with 2 tables?

so my table structure is this: users: id,........ user_favourites: id, user_id, favourite_id Both...

0 Likes
0 Replies

how to inject model to other method for a model?

hi.! I develop a project in laravel <?php public function test() { return $this->test2(\App\...

0 Likes
0 Replies

How to access additional user information stored in another table

Hi, I'm using Confide&Entrust package for user managment and now I'm storing additional user inf...

0 Likes
17 Replies

How to run database stored procedures from Artisan Command?

I've been fighting this for a few hours now, but don't seem to be able to solve it. I have a stored...

0 Likes
0 Replies

how to pass variable into a new variable using parameter

I have getName Function shown below: public function getName($id) { $visit = DB::table('tm_Child') -...

0 Likes
0 Replies

Laravel on EC2 instance connecting to RDS mysqli database error.

Ok, so I've been working with my laravel code base locally via homestead and decided to push a test...

0 Likes
0 Replies

Only returning results where a 'with' matches criteria.

I'm trying to get only Products where they are in the selected 'category' and the selected 'range' P...

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

© 2025 Laravel.io - All rights reserved.