Support the ongoing development of Laravel.io →

4,607 Threads

posted 10 years ago

Segmentation fault on $php artisan migrate

I have ran artisan migrate many times on my server, however today I am receiving a segmentation faul...

0 Likes
0 Replies
posted 10 years ago

Laravel Eloquent sql statement after exist check is limited to 1

I hope it is okay just to link to the stackoverflow thread. I am rly confused about this behaviour a...

0 Likes
2 Replies

Issues in counting user login on every login.

Hi gues i am working on a login functionality that increments the "no of login times" tabl...

0 Likes
7 Replies
Solved

Question regarding aggregate in Query Builder

I am querying a table and I wonder why Laravel make a count(*) query before my query that spend addi...

1 Likes
5 Replies
posted 10 years ago

Retroactive Migrations

Any way to retroactively populate migrations using a database without any?

0 Likes
0 Replies

Laravel 5 using PDO object in a class (Custom Database Conn?)

Hi Guys, So there, basically, i created a class in PHP that uses PDO (i'm connecting to an ODBC obvi...

0 Likes
0 Replies

attach() throws error when given array of ids with additional pivot data

Example in the docs: $user->roles()->attach([1 => ['attribute1' => 'value1'], 2, 3]); So...

0 Likes
0 Replies

convert query mysql to Eloquent?

Hello, I need convert query from mysql to eloquent mysql Query SELECT count('id_sale') FROM sales J...

0 Likes
0 Replies

Eloquent where 'and', 'or' statement

I'm trying to write this first piece of line in Laravel. I thought I got it right, but not. I hope t...

0 Likes
1 Replies
Solved

How to compare json array in Laravel 4

There is one problem which I can't solve. I need to show a response only for users whose user_id was...

0 Likes
0 Replies

Non autoincrement id for a model returning 0 on id when created

I have in my model several tables where the primary key it's not autoincremental, but it's a varchar...

0 Likes
1 Replies
Solved
posted 10 years ago

Using array of values in query

I've got some code that I'm taking over and this is a quick sample of a bit of code I'm dealing wit...

0 Likes
5 Replies
Solved

Laravel Error Message When Sending Email

I'm trying to send a basic verification email using Laravel and an account on mailgun.com. I've foll...

0 Likes
1 Replies

Using carbon to get next weeks dates.

I have a web page that lists events, it is split into 2 categories: This week (today is FRIDAY so t...

0 Likes
3 Replies

How to print multilines in Blade 101?

When i try to print using blade syntax {{ $var }} "this is test" from database column type...

0 Likes
2 Replies

Sending error messages from Handler.php for Ajax calls.

The database save is happening from ajax call and I am using hanlder class to validate database exce...

0 Likes
0 Replies

Do i really need foreign keys in database to use eloquent ?

Do i? Lets say that my db is going to be well maintained by one person (me) and that no other applic...

0 Likes
2 Replies
Solved

What is the purpose of setting Laravel loaded config while processing a request?

Hi, i am having some trouble trying to change a connection's database key on the fly to let a model...

0 Likes
0 Replies

[Laravel 5] Reminders table

Hello Does laravel 5 have an artisan command for making the reminders table? I've tried what I've fo...

0 Likes
1 Replies

eager loading on polymorphic relation

Hi there. Here is my problem I have an eloquent model called Notification with a polymorphism relati...

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