50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Enable Sql Log in Laravel

07-08-2017

Add following codes to routes.php file

Event::listen('Illuminate\Database\Events\QueryExecuted', function ($query) {
    if (App::environment() == 'local') {
        Log::info($query->sql . ' Parameters: ' . serialize($query->bindings));
    }
});

© 2019 Tüm Hakları Saklıdır. Codesenior.COM