Debugging with laravel Fluent Query Builder - debugging

Im building a project in laravel 3 and wondering how you can debug Fluent Query Builder ie. get the error message or the produced SQL in order to see what im doing wrong

If you enable the profiler in Laravel 3 it will show you the executed queries once the page has loaded. You can enable it by setting the profiler option to true in application/config/application.php

Related

How to fix query builder error sql injection in laravel 5.5.*

I am using laravel 5.5. * And I'm testing with vega scanner and getting SQL injection error.
How to fix this problem.?
this is the complete error specification
From my understanding, you are inserting directly in the database whatever comes from your request parameters, as the error says it is an "input validation error".
This is happening because you are not validating those inputs, in Laravel you can create validators, so that whenever you want to insert something, the values from the request are validated. If they are not validated, you can return a different response or prevent the controller from inserting data.
Here is the official documentation of Laravel, and it is really well explained. (I have browsed for your version, even though you can check the documentation for the latest version).
Hope I was able to help you.

oracle apex Error handling function not working properly

I am trying to use the oracle's apex_error package to implement error handling in my app.
test app: https://apex.oracle.com/pls/apex/f?p=145329:2:11482099171656::NO:::
table created: constraint_lookup
function provided by oracle "apex_error_handling_example". https://docs.oracle.com/database/apex-18.1/AEAPI/Example-of-an-Error-Handling-Function.htm#AEAPI2216
The solution works fine except when you click on the error it gives error in console instead of taking you to the tab of the IR report.
Now click on the message so it should take you to the duplicate DeptID, but it just gives you error in the console.
I have tried to handle this at page level, application level also I tried to set the column_alias manually so I don't have to use the APEX_ERROR.AUTO_SET_ASSOCIATED_ITEM but all in vain.
Any help and your time will be much appreciated.

No such plan: status24hr; a similar object exists in live mode, but a test mode key was used to make this request

when I am trying to use the stripe test key.
Laravel 5.7
php 7.2
Your test product was empty. create a test product first switch viewing test data
on your stripe dashboard

Kendo spring demo project missing database

I'm trying to run Kendo spring demo application, most of the demos works but whenever I run remote binding examples I'm getting
[SQLITE_ERROR] SQL error or missing database (no such table:
Employees)]
It seems like it couldn't find the database, where can I find the database or how can I fix this?
The database should be available under the following folder:
spring-demos\src\main\webapp\WEB-INF\sample.db

Debug sql queries with Web_Debug tool in Symfony 1.4

I'm using an web application which is developed using symfony 1.4.16 with mysql. I need to see what are the sql queries running on behind some actions in the application. So in the dev mode I have enabled the web_debug in the settings.yml file.
dev:
web_debug: true
Now I can see the web debug toolbar in the browser but I cannot find a place which shows running sql quires.
Should I change more settings in order to get sql queries. Please help me on this.
As of Sf 1.2. you can customize the webDebug panel so it is very likely that you have the DB info disabled. Have a look at this docs: http://symfony.com/legacy/doc/more-with-symfony/1_4/en/07-Extending-the-Web-Debug-Toolbar and you should be able to locate where you can re-enable the query panel.
Nothing else you should do .....
if you have a sql queries ran in your action , you should see it like at image
Edit: config/databases.yml
Add these lines:
dev:
propel:
class: sfPropelDatabase
param:
classname: DebugPDO
If you're using Doctrine, replace Propel with Doctrine.

Resources