Support the ongoing development of Laravel.io →

metude

Joined 13 Feb 2014

Statistics

Threads 2
Replies 3
Solutions 0
Articles 0

Database Truncate Even If It Has Foreign Key

I have a database seeder begins with: DB::table('lessons')->truncate(); But when I run seeder, [I...

0 Likes
3 Replies
Solved

Can I set database credentials based on environment

I'm deploying an app with fortrabbit, as you may know, fortrabbit does not uses localhost and have o...

0 Likes
2 Replies
Solved
replied 10 years ago

Database Truncate Even If It Has Foreign Key

@Oliver Thanks for different solution, I haven't tried but in my case setting foreign key check more...

0 Likes
replied 10 years ago

Can I set database credentials based on environment

I wasn't thinking App::environment() can be reacheable at database.php. Thanks, I'll check and try A...

0 Likes

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.

© 2024 Laravel.io - All rights reserved.