Support the ongoing development of Laravel.io →

4,606 Threads

posted 10 years ago

Database connection error on shared hosting

Hello, I keep getting this error on my ixwebhosting account "SQLSTATE[HY000] [2000] mysqlnd can...

0 Likes
2 Replies

Laravel auto date time conversion at model level

Whenever i save any date or time into database i convert it into UTC format and save to database and...

0 Likes
1 Replies

LeftJoin In mongodb laravel

Hi everyone I have problem with mongodb in laravel i use mongodb 'jenssegers' IN MYSQL : i use sql \...

0 Likes
0 Replies

Using Models for noob

Hi, I'm sure this has been asked a thousand times, but I still can't find much out there. I understa...

0 Likes
1 Replies

Polymorphic, Many to Many relationship. Problems setting up --able table

So I have a tag system, and for each user, they can have many tags, and also posts can have tags, so...

0 Likes
2 Replies
Solved

Rating System Model Relationship

I'm trying to set up my website to support ratings on posts from users. I'm not sure what the best...

0 Likes
5 Replies

How to save Eloquent Model with relations in one go?

When saving a model with relations we do something like this; $ship = new Ship; $ship->name = 'E...

0 Likes
6 Replies

Eloquent "One to Many" to "One to One" Just cant get it to work (with Images)

Hi All what i am trying to do is..... 1 users has many Import REF's and each REF has one document my...

0 Likes
5 Replies

ORM toJson() not returning JSON, but returning SQL statement?!

I am having the following in one of my controller's show($id) method. There is only this line in the...

0 Likes
0 Replies

How to use postgresql ARRAY, JSON fields in Schema Builder

How to use postgresql ARRAY, JSON fields in Schema Builder

0 Likes
2 Replies

Basic carbon date help, please help

Hello, I'm trying to insert a simple date from a datepicker in my mySQL table. I keep getting this e...

0 Likes
1 Replies

Problem with laravel in production (blank pages - pretty urls do NOT work)

Hello, we were developing a website and we are finally going in production. So we uploaded the conte...

0 Likes
11 Replies
Solved

Can Homestead be upgraded to MySQL 5.6.4?

I have a need for limited Full text search and my engine of choice for it is Inno, but full text sea...

0 Likes
0 Replies

Preventing overwriting changes in database.

I have a system for publishing photos. Photos are published in articles. Article is searched based o...

0 Likes
5 Replies

Mysql to Postgres Conversion

Hi , We are using laravel 4.2. Till now we have used mysql database . Now we want to mive to Postgre...

0 Likes
2 Replies

Multi-table class inheritance possible with Eloquent?

I have an application that's getting pretty large. I've noticed that one of our tables "locatio...

0 Likes
1 Replies
posted 10 years ago

slug build from title and random string

Hello, Im using cviebrock/eloquent-sluggable and wanna make unique slug for news table. News model:...

0 Likes
1 Replies
Solved

Getting a checkbox to save

If the checkbox is checked it needs to save as a 1 in the database and if it isn't checked then it n...

0 Likes
3 Replies
Solved

Call to undefined method Illuminate\Database\Query\Builder

Sorry, about formating at first. It's my first post here, I'll try to edit it. I spend some hours of...

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.