Level 88
You can use DB::statement() as far as I know so it would be something like this
DB::statement("SET lc_time_names = 'es_MX'");
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
How can you do something like this: mysql> SET lc_time_names = 'es_MX'; in a migration ? I want to store dates in a danish format in the database
Please or to participate in this conversation.