Support the ongoing development of Laravel.io →

4,606 Threads

Model insert fail with MSSQL + trigger

I have one particular Eloquent model that is giving us seemingly random problems with inserting. Tha...

0 Likes
0 Replies

[SOLVED] Many-to-Many relationship - save() trows Integrity constraint violation

Hello, before to explane the problem, I try to make clear the situation of my system. I'll indicate...

deepakjd liked this thread

1 Likes
0 Replies
posted 10 years ago

Laravel select help?

Why i cant do this: Model::select("IF(premium > 0, 'yes', 'no')" as PremiumYesNo')->...

0 Likes
3 Replies

static::create vs DB:insert.

If I use the following code snippet in my model it inserts the data: $fillable = ['email', 'username...

0 Likes
0 Replies
posted 11 years ago

How to set the current page for the paginator?

I have a simple question about laravel pagination, I want to tell the query to take the page number...

0 Likes
4 Replies

convert sql query to laravel

Hello i need help to convert query to laravel select login,name from mt4_users,users_agents where mt...

0 Likes
1 Replies

How to pass additional parameters to the Eloquent model's create and update methods?

Hello everyone, I am a Laravel newbie and still trying to find my way around it. I am overloading th...

0 Likes
1 Replies

Eloquent group by relationship date

I have a topics and links tables on Laravel 4.2 with Eloquent ORM. They have a relationship like thi...

0 Likes
0 Replies
posted 10 years ago

How to convert SQL query to proper LARAVEL query that includes self join?

How to properly convert SQL query: select a.* from active_user_data a join (select max(id) id ,user_...

0 Likes
0 Replies
posted 10 years ago

Convert SQL to Laravel Query

How to properly convert SQL query: select a.* from active_user_data a join (select max(id) id ,user_...

0 Likes
0 Replies

PDF populate IRS forms

I have not done much in the way of creating PDFs and wanted to find out if it was possible to take a...

0 Likes
1 Replies

Can't migrate for Unit Test... Alternatives to migration?

When the unit tests run migration on the sqlite array driver, I get the following exception: Doctrin...

0 Likes
0 Replies

Ajax login and Laravel database sessions

I have been using the conventional way of signing in a user up without ajax and since I have switche...

0 Likes
1 Replies

Hi Laravel Family | Need Simple Laravel CRUD

I'm new to Laravel. I am now done with Up & Running with Laravel. I need some guidance in implem...

0 Likes
2 Replies
Solved
posted 10 years ago

Where should I put a check for database exists?

Does anyone know where I could put some logic to check if a database exists? It seems wherever I put...

0 Likes
4 Replies

laravel (possibly 5) error/bug.. if someone could verify/report..

I have got an installation of Laravel 5 on my local machine using MAMP. db config uses Socket/port....

0 Likes
0 Replies

Connection refused when trying to database connect through laravel

Hi, I've set up my mysql config like so: 'mysql' => [ 'driver' => 'mysql', 'host'...

0 Likes
2 Replies

Polymorph vs 3 Foreign Key

Hi all, If I have 3 tables (users, organizations, guest) who share the same feature, it's ok to put...

0 Likes
1 Replies

Why when I run a query laravel return something that I can't understand?

When I run this I get a very long text as result: ....Route::get('/', function() ....{ ....$posts=DB...

0 Likes
2 Replies
Solved

How to find different field by laravel find method?

I know there are a method what called find in laravel, I have a table with this structure (articles...

0 Likes
1 Replies
Solved

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.