Support the ongoing development of Laravel.io →

4,603 Threads

How to solve the growing bloated ORM?

At first, my model code may be clear, but later, more and more model associations, more and more eve...

0 Likes
0 Replies

Has Many Through Relationship Depth

Hey Guys, I am just trying to understand the depth of the has many through relationship as well as i...

0 Likes
4 Replies
Solved

Laravel 5.6 Separate Image Upload

How do I upload two separate image files to different file locations and save to database? Everythin...

0 Likes
0 Replies

ManyToMany Relationship With Third Table

Hi, Using Laravel 5.5 I am trying to design an incident management system which has bespoke requirem...

0 Likes
1 Replies

How can get multiple images from Database

Hi I have stored my images in database like array image1,image2,image3 using laravel-5.6. Now first...

0 Likes
0 Replies

Retrieving 5 million records from database and comparing

Hello Everyone, I have a requirement of retrieving 5 million records from MySQL database and compari...

0 Likes
4 Replies
Solved

Laravel 5 search/select form with dropdowns and text search

Hello Laravels. I'm building a cityguide which has companies-company types, groups-group types, even...

0 Likes
2 Replies

Error : Class 'DB' not found in phpunit test for a Seeder

I am trying to create a unit test for my db seeder, which looks like this: <?php use Illuminate\...

0 Likes
1 Replies

Laravel Teams Problem

Hello, I have a Problem i will create Teams for Users Amateur, Community etc. I have create Migratio...

0 Likes
0 Replies

InvalidArgumentException: Unable to locate factory with name [default] [App\Company].

Here's what my very simple model looks like: <?php namespace App; use Illuminate\Database\Eloqu...

0 Likes
1 Replies
posted 10 years ago

How can I make a column nullable that already exists?

I don't want to drop and re-create the the column, but I need to now make it nullable. There doesn't...

0 Likes
2 Replies

Как правильно составить запрос к базе?

Есть таблица produkts. У этой таблицы есть связи "многие ко многим" с 3 другими таблицами...

0 Likes
0 Replies

Join interfering with eager loading

I'm going insane. I have a query that needs to use a join and eager loading. The join needs to occur...

0 Likes
2 Replies

Eloquent ORM: Eager Loading Error: 'Call to a member function addEagerConstraints() on a non-object'

Unit Model: namespace App\Models\Qualification; use Illuminate\Database\Eloquent\Model; class Unit...

0 Likes
2 Replies
Solved

Import an existing MySQL database

Hello, Just beginning with Laravel and i'm wonder if it's possible to import an existing database (s...

0 Likes
1 Replies

Upload file

Hello, I started to learn Laravel and I have a problem. I want to upload image (name -> database)...

0 Likes
2 Replies

Error while using factory in phpunit test classes

When I use Factories in a test class in phpunit, field value doesn't insert into database. It return...

0 Likes
1 Replies
posted 6 years ago

Create database tables script wise, not PHP ARTISAN wise

Hello! I want to make a web installer based on Laravel, which means, i want people to be able to put...

0 Likes
0 Replies
posted 6 years ago

Strategy for Multi-Change Migrations

I recently created a migration with 5.6 that changed the data type for multiple columns and renamed...

0 Likes
0 Replies

Laravel 5.2 Eloquent relationship with two (composite) keys

I'm trying to figure out the best way to define a relationship from one model to another where the r...

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

© 2024 Laravel.io - All rights reserved.