Support the ongoing development of Laravel.io →

trigged

Joined 18 Mar 2014

Statistics

Threads 3
Replies 4
Solutions 0
Articles 0

how can i run complex raw sql query in laravel

i have some little complex sql query ,i want run in laravel ,i do like that \DB::connection('models'...

0 Likes
4 Replies
posted 10 years ago

build api with laravel ,how to disable cookie output

I buid api with laravel and control the http header like : $header = array( 'Expires'...

0 Likes
1 Replies

how to reset model deleteat_at to ''0000-00-00 00:00:00" ?

I notice that laravel use 0000-00-00 00:00:00 for deleted_at time ,So i change data deleted_at like...

0 Likes
5 Replies
Solved
replied 10 years ago

how can i run complex raw sql query in laravel

i copy the sql run on the mysql workbench was ok,but in laravel has error: SQLSTATE[42000]: Syntax e...

0 Likes
replied 10 years ago

Null value for deleted_at to be '0' and not 'null'

you can try rewrite you model fromDateTime method public function fromDateTime($value) { //you...

0 Likes
replied 10 years ago

how to reset model deleteat_at to ''0000-00-00 00:00:00" ?

ranisalt said: Don't you just want to 'restore()' your record? that's work ,thanks a lot

0 Likes
replied 10 years ago

how to reset model deleteat_at to ''0000-00-00 00:00:00" ?

Kpoew said: try this http://laravel.com/docs/eloquent#timestamps thanks for your replay ,the d...

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.