Support the ongoing development of Laravel.io →

4,606 Threads

How to seed database after deploying the Laravel app on Heroku?

I successfully deployed a laravel app on Heroku but when I run 'heroku run php artisan db:seed' I go...

0 Likes
0 Replies

Check database column for specific value before insert

I have a column in database table Category called 'no_category' by default is 1 but if user choose '...

0 Likes
0 Replies
posted 8 years ago

How to add index for { $table->timestamps(); } ?

I wanna and the index for the { $table->timestamps(); } . For quick query the some time's recor...

0 Likes
1 Replies
posted 8 years ago

Relationship without foreign key

Hi there, I have a table called Users, and two tables called firstnames and lastnames, respectively....

0 Likes
2 Replies

How to decrypt a particular model field when retrieving through hasMany relationship

I am retrieving a list of articles that belong to each blog of the current user like this: return $c...

0 Likes
3 Replies

"php artisan queue:failed" in Homestead is using mysql not postgres, even though postgres is defined in .env

Hi all, I've got 5.1.6 running in Homestead with postgres set as the DB in my .env file. The entire...

0 Likes
2 Replies

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved

View Data Filter Not Working

Hi Gaes I encountered a problem where I want to show data by year If the variable $ year I return th...

0 Likes
0 Replies

How to get child objects belonging to parent

I have a method that returns all the current user's blogs. User hasMany Blogs and Blog belongsTo Use...

0 Likes
2 Replies
Solved

Help with query

Hello, could somebody kick me into right direction how to build this kind of query in eloquent: SET...

0 Likes
0 Replies

How could I connect to a custom database?

I'm creating a sort of SQL web client and would like to know if it's possible to connect to a user-s...

0 Likes
2 Replies
posted 8 years ago

migrations

how to migrate specific table?

0 Likes
2 Replies

help with billing in laravel

Hi, im building this SaaS application where the users are billed every month on their join dates. bu...

0 Likes
1 Replies

Link each product to its product_details page

In native PHP it takes about 2 minutes to link each product on the page to its product_details page...

0 Likes
4 Replies
Solved
posted 8 years ago

Maatwebsite Excel Getting Maximum time execution

I got Maximum execution time of 60 seconds exceeded even if I have only 1 record(username, email) in...

0 Likes
1 Replies

How do I use chunk to insert large amounts of data into database?

I would like to insert a large number of rows into my database using chunks, but I am not sure I am...

0 Likes
2 Replies
Solved

How to move all models in separate folder in laravel 5.2

Greeting to everybody, I'm building a pretty big and complex application in laravel 5.2. it's going...

0 Likes
2 Replies

Create join without "ON" clause

Hi Guys...i need some help...i need to implement something like this... select * FROM matchscore_pr...

0 Likes
2 Replies

Trying to display orders on logged user

I'm trying to make a menu for user when he loggin to be able to check his order history. So far I go...

0 Likes
3 Replies
Solved

database, model, eloquent convention

hi, I'm started to use Laravel and have a question about the underscore convention when creating tab...

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