Support the ongoing development of Laravel.io →

4,597 Threads

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

Foreign Key makes Problems

Hello, I would like to program an inventory system and need 3 tables for it. These can also be gener...

0 Likes
1 Replies
posted 10 years ago

How to create a new database (with prepared statements)?

Hello, I am trying to run a statement to create a database and an user, but it seems laravel continu...

0 Likes
2 Replies

Enforce additional WHERE on all queries.

We have a product SaaS let's say eCommerce. All user created shops and products are stored in single...

0 Likes
4 Replies

How to Route Model Bind with dynamic database connection?

Hi good people. Have been stuck for hours on end with model binding with dynamic DB connection. I ha...

0 Likes
3 Replies

Use Enum or Boolean , for 2 values

I have a doubth in am creating my DB , I have a column in my table that is called STATUS , the value...

0 Likes
1 Replies

Class 'Cartalyst\Sentinel\Laravel\SentinelServiceProvider'

Hello everybody, I don't have any problem running my app locally, I have cross checked my code thoro...

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.

© 2024 Laravel.io - All rights reserved.