In my Laravel 5.5 application, calls to DB::select which run a select query on a Postgresql database fail without showing any error in the Apache or Laravel error logs and t
i think its an Sql query error
`SELECT * from test()`
Since () bracket indicates the function so try to use like
`SELECT * from test` in your query
Best way in laravel
Then use in controller like
`use App\Test;'
and then to fetch records
Test::all();
it will bring all records from database like your requirement SELECT * from Test