I have this query en php laravel
$query = DB::select("SELECT * FROM solicitudes WHERE id = 5");
My table "solicitudes" have the columns "id, titulo, proveedor"
The query result is only one row, and I want to take the value of "titulo". I try it with something like this...
$nombrep = 'nombre'.$query->titulo;
but this throws an error
Trying to get property 'id' of non-object