Then dont send the data using ajax, and dont use vue. Use pure blade files :)
Or you can make sure to limit the data you send to data they are allowed to see
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I use laravel and vue to menage some data from db, and i return json format from laravel controller to vue js. I just want to hide the response data from network tab or to mask them maybe. I didnt does this before. I mean, when i open network tab i see a request get-users?page=1 and if i double click open this urlhttp://127.0.0.1:8000/admin/users/get-users?page=1 witch show me all data like this
// http://127.0.0.1:8000/admin/users/getusers?page=1
{
"data": [
{
"id": 1,
"name": "Admin",
"email": "[email protected]",
"email_verified_at": null,
"last_online_at": "2022-12-02 10:27:20",
...
is there any way to mask this data to somethink like this
// http://127.0.0.1:8000/admin/users/getusers?page=1
{
"data": [
{
success: true,
response: null //or true
}
this is how i return users data
return new UserResource(User::paginate($paginate));
Please or to participate in this conversation.