Support the ongoing development of Laravel.io →

4,608 Threads

posted 10 years ago

Homestead - unable to create and connect to new DB

Hi, I've just started using homestead and want to have multiple sites on the same VM. However, Homes...

0 Likes
1 Replies

sorting multiple tables by time

hello to every one, I am trying to sort multiple tables like this; //Controller http://laravel.io/bi...

0 Likes
4 Replies
Solved

Eloquent Query's not working with a certain table

Hello, I am porting my current website over to laravel and I'm having some issues. I'm trying to lis...

0 Likes
5 Replies
Solved
posted 10 years ago

Setting up relationships ?

I've been going through the documentation and reading up on relationships, and I'm having trouble oh...

0 Likes
2 Replies

Multiple tables over multiple databases in a single Model

I am in the planning stage of undertaking a database migration where the two databases (one MySQL, o...

0 Likes
4 Replies
Solved
posted 10 years ago

Missing where method on join with where clause

I require a join with a where clause such as: SELECT * FROM users LEFT JOIN contacts ON contact...

0 Likes
1 Replies

Deleting DB-entry: findOrFail or destroy?

Hi, is there a difference between $go = Project::findOrFail($id); $go->delete(); and Project::de...

0 Likes
2 Replies

Best way of retreiving items with a condition on the relation

#The goal# What I'm trying to do is generate a new collection with all the Consultations ordered by...

0 Likes
3 Replies
Solved
posted 10 years ago

SQLSTATE[HY000] [2006] MySQL server has gone away

I am getting "SQLSTATE[HY000] [2006] MySQL server has gone away" sometimes..... has anyone...

0 Likes
0 Replies

Handling in model validation

I read everywhere that in model validation is best practice, but I don't know how to handle a failed...

0 Likes
3 Replies
Solved

Get last 10 tags, polymorphic many-to-many

Hello guys, how can I get last 10 used posts tags? http://help.laravel.io/bd1f15c318d5358b745f27afe3...

0 Likes
1 Replies

Seeding only new files

Hello! Is it possible to know which seeds ar allready seeded and which are new automatically with ar...

0 Likes
2 Replies
Solved

Wrong colums deleted??

Hello, I have some data displayed in table...lets asume like this: 1 - Title1 - Edit, Delete 2 - Tit...

0 Likes
1 Replies

Laravel 4 & json pagination

Hi, I want to create a javascript app that will use a json created by laravel. As there will be a lo...

0 Likes
1 Replies
posted 10 years ago

Inheritance

Is possibile to use inheritance in laravel model? I explain: is possible to exend a model, which ext...

0 Likes
0 Replies

Laravel Homestead, Vagrant SSH and Database Management on VM

Greetings Laravel Community! As you can tell, I'm new- that is, I've so far not caused many visible...

0 Likes
1 Replies

View by date and count

I need to display data like so: July 2014: A...

0 Likes
0 Replies

Return specific column

$this->model->find($id)->tags()->get()->toJson(); Not return columns the table tags I...

0 Likes
1 Replies

Can't upload a photo to laravel

Hello everyone I'm trying to add some products to my db and I have to upload photo of this product....

0 Likes
14 Replies
posted 10 years ago

Adding Foreign Key Constraint for Char() Data Type

I'm using migrate to add foreign key constraints to my tables and I want to link two columns that ar...

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.