gowthamdeena's avatar

Laravel Pagination page id encription

I am using Laravel pagination total of 200 records is there and i am pagination 10 records per page.

first time I load the page show the URL is as I am given

https://www.example.com/photogallery

Then I click the next page the URL shows

https://www.example.com/photogallery?page=1

then go to next page

https://www.example.com/photogallery?page=2

I am facing the issue the page is 1 and 2 is possible to SQL injection, Kindly give a solution for the page id encryption.

0 likes
2 replies
Fady's avatar

Laravel will automatically protect your app against sql injections as long as you don't run raw queries. Encryption does not protect against such attacks.

1 like

Please or to participate in this conversation.