Support the ongoing development of Laravel.io →

4,606 Threads

Multi-tenant application approach

I'm trying to build a multi-tenant application with Laravel 5. I'm aware of already existing package...

0 Likes
3 Replies

Cannot check password hash - Why?

Hello, I developer some API with JWT and everything is working, except the change password function....

0 Likes
6 Replies

Handling different data within Controller

I have a system whereby you can go and create different documents. From a select list, I could selec...

0 Likes
0 Replies

Triple Pivot Challenge- Looping through a Collection

I have the following challenge, trying to join 3 tables in Laravel 5: I have a many-to-many relation...

0 Likes
0 Replies

"belongsTo" relations with multiple ids

I have two table: Rooms Facilities The Facilities rooms contains the id and a varchar column. The...

0 Likes
1 Replies

Display SQL count query results in the VIEW

Hello guys, i have this mysql query for counting something in my controller $count = 0; foreach ($d...

0 Likes
0 Replies

Php Tinker Error

My directory structure is CBridge->app->Models->Companies In companies.php I have below cod...

0 Likes
0 Replies

Retrieve data from migration unsuccessfully

Hi. I am trying to retrieve data from a table called users. The data is not showing,though. How do I...

0 Likes
0 Replies

insert multiple rows

i want to insert multiple rows in the database on one click if row is checked using multiple checkbo...

0 Likes
0 Replies

Want to get boolean instead of 0/1 after ORM query

I used the toArray() method to transform my query results into an array, but I want some of the fiel...

0 Likes
4 Replies
Solved

User(admin) hasOne Group & User(normal) belongsTo Group solution

Dear reader, I am building a simple group chat application. The architecture is like this: User(Admi...

0 Likes
0 Replies

How to: Store Config Data

Hello everybody, i am brand new to Laravel and i am wondering about the "best practice" ho...

0 Likes
5 Replies
Solved

Subcategory Tree System

Hi there, I want to show subcategories in the system tree. But I could not. Can you help me in direc...

0 Likes
0 Replies

Laravel 5 loads wrong .env file when using multiple instances of project

I use Laravel 5 and i have the following folders on my server: /var/www/laravel_dev/ /var/www/larave...

0 Likes
1 Replies
posted 9 years ago

How can i make this query in laravel

select obl.ownedbooklistid from bookinfo, ownedbooklist owl where (bookinfo.bookid = owl.bookid) and...

0 Likes
1 Replies

Eloquent contains() method doesn't check on newly saved relations?

Suppose you have a many-to-many relation between two models, let's say Post and Tag, and you want to...

0 Likes
0 Replies

Creating a gallery popup depending on the image

I'm using Laravel 4 and I'm trying to create a gallery page that when you click on an image that ima...

0 Likes
1 Replies

Image not loading

I have placed the image named java01 in projectname/public/img and called it java01 in the database....

0 Likes
1 Replies

Eloquent Drop Down does not show correct value from db

Hi I have a discount table that starts from 0-100. The second entry is 0.5. This is how is seed the...

0 Likes
2 Replies

Can't Create Foreign key using below tables

singers table <?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrati...

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