Support the ongoing development of Laravel.io →

4,606 Threads

[Laravel 5] Where is the models folder?

Hi, I've just installed the Laravel 5 dev-develop version. However, I only see one model, and that s...

0 Likes
10 Replies
Solved

Speeding Up Eloquent Queries

Hi, Say I have some queries like this: public function order($orderby){ \DB::connection()->disa...

0 Likes
0 Replies

Is it better caching SQL queries or decreasing number of requests?

Hi, folks! Let me explain step-by-step what I'm trying to achieve: My application is backend-fronten...

0 Likes
0 Replies

Change .env variables with a controller

Hi, I would like to make an php installer script for my laravel application (it is a CMS). But i can...

0 Likes
0 Replies
posted 9 years ago

Specifying environment ('php artisan migrate --env=testing') doesn't work

Hello. When I specify environment on migrate command "php aritsan migrate --env=testing" i...

0 Likes
2 Replies

Eloquent relations issue

Hi guys! First things first. I have this tables: beds id name size room status hotel created_at upd...

0 Likes
0 Replies
posted 9 years ago

Is there a more efficient way to do this query?

Here's the query: /** * Get all dates and counts for an event via the database */ public function...

0 Likes
2 Replies

Eloquent relationship: Relation table with pivot table

I have created three tables, A, B and C. A and B have a ManyToMany relationship so I created A_B tab...

0 Likes
1 Replies

db to seed files dump tool

Is there any tool or library that generate laraval seed files from db.?

0 Likes
1 Replies

L 4.2 after migration error 2005 - Ran out of ideas...

Hi, recently a L4.2 site was migrated to a new host with centos 7, PHP 5.5.30. PDO and MySqli connec...

0 Likes
0 Replies

How to send relationship data to view? One to many relationships!

Hello, friends! I need to make drop down list with categories! Somehow, something is not working :(...

0 Likes
5 Replies

Key Value pair with Eloquent

Hello, I am trying to make Key/Value system on Eloquent because I need it to extends my users table....

0 Likes
2 Replies

my ubuntu php vs homestead php

is there any difference between ubuntu desktop vs homestead? because when i query using where clause...

0 Likes
4 Replies

How can I sort data by relations without join?

I have table users and user_language and I create relations for user_language. user_language will ke...

0 Likes
2 Replies

Laravel, Eloquent and a new graph db driver

My team has been investigating graph databases for our new project, and have landed on using OrientD...

0 Likes
3 Replies

Laravel 5.1 csv to array hashing password

I have a CSV file with a couple of hundred user. Every user has a unique code. When uploading the cs...

0 Likes
0 Replies

fetch all articles with user selected cartegory

Hi. I am new to Laravel. I am using Laravel 5.1 for my current project. I have 4 table. users, categ...

0 Likes
0 Replies

belongsToMany relationship won't return data

I have a user, user_relationship, and term table. I have a belongsToMany function in my User relatio...

0 Likes
2 Replies
Solved

Cascade on delete not working

I have added cascade on delete to foreign keys on my migrations. They are working on mySql in local...

0 Likes
0 Replies
posted 9 years ago

Driver Not Supported Error

Hello, I've recently encountered an issue with access to my backend MariaDB database. I am running m...

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.