Excuse me, how to downgrade php 8 to php 7 version?

|
manuelbosi 2021-11-24 15:52:20
neelbas 2021-11-24 15:45:11
my app read variable from file, how I can escape(safe it) for sql query to prevent injection? I tried the DB::escape(), but it does not works!
User::where([
‘username’=> DB::escape($loginData[‘username’]),
‘enabled’ => true
])

I think you could build a parse system to validate string

neelbas 2021-11-24 15:53:39
manuelbosi 2021-11-24 15:52:20
I think you could build a parse system to validate string

it’s mean a LARAVEL doesn’t provide proper solution for make safe a variable to use in query?! 🤯🤯🤯

manuelbosi 2021-11-24 15:53:46
neelbas 2021-11-24 15:45:11
my app read variable from file, how I can escape(safe it) for sql query to prevent injection? I tried the DB::escape(), but it does not works!
User::where([
‘username’=> DB::escape($loginData[‘username’]),
‘enabled’ => true
])

Check here
https://fideloper.com/laravel-raw-queries

Raw Queries in LaravelFideloper
How to use raw queries safely.
manuelbosi 2021-11-24 15:54:09
You can pass parameters in array in raw queries
manuelbosi 2021-11-24 15:54:26
And this can prevent injection
neelbas 2021-11-24 15:55:23
laravel_discuss-100565.jpg
@manuelbosi
How to escape: $loginData[‘username’]
segungreat 2021-11-24 17:38:31
neelbas 2021-11-24 15:55:23
@manuelbosi
How to escape: $loginData[‘username’]

Use db raw and pass parameters as array

segungreat 2021-11-24 17:45:17
Can anyone recommend a good, reliable and not so expensive vps hosting?
jaylj232 2021-11-24 18:42:20
DM me for one earning app … I earn 1000 in last 2 days without any investment
Edifice_Solutions 2021-11-24 19:57:40
<input type=”date”name=”tenor-date”class=”form-control” id=”txtDate” min=”{{ CarbonCarbon::now()->addDays(180)->format(‘Y-m-d’) }}”required>
Edifice_Solutions 2021-11-24 19:58:34
Edifice_Solutions 2021-11-24 19:57:40
<input type=”date”name=”tenor-date”class=”form-control” id=”txtDate” min=”{{ CarbonCarbon::now()->addDays(180)->format(‘Y-m-d’) }}”required>

I have a json response from a javacript get request ,,,,I want to change the 180 to the data.tenor,,, from the response,, how can I achieve this

neelbas 2021-11-24 20:38:40
segungreat 2021-11-24 17:38:31
Use db raw and pass parameters as array

can you give me a ref. please?

Patel 2021-11-24 21:16:45
jaylj232 2021-11-24 18:42:20
DM me for one earning app … I earn 1000 in last 2 days without any investment

Thank you for this ..
DM me if anyone of you want ….

Natt 2021-11-24 21:49:38
help me, please
Natt 2021-11-24 21:50:02
i use axios call api but message: “CSRF token mismatch.”
Natt 2021-11-24 21:50:14
how to solved it.
2021-11-24 21:54:31
If you’re just testing u can whitelist the route in verfifycsrfptoken else you may pass the csrf token with your api call.
RahiMSuleymaN 2021-11-24 21:59:22
laravel_discuss-100584.jpg
Hi everyone How can ignore html tags in searching
suuwhooop 2021-11-24 22:11:26
how are you passing the $content in your html
suuwhooop 2021-11-24 22:11:48
{{}} or {!! !!}
RahiMSuleymaN 2021-11-24 22:19:32
{!! !!}
segungreat 2021-11-24 23:36:38
Natt 2021-11-24 21:50:02
i use axios call api but message: “CSRF token mismatch.”

Did u set csrf token in head tag

segungreat 2021-11-24 23:37:58
neelbas 2021-11-24 20:38:40
can you give me a ref. please?

https://laravel.com/docs/8.x/queries#raw-expressions

lxyous 2021-11-25 05:08:26
Excuse me, how to downgrade php 8 to php 7 version? Anyone can help me?
lxyous 2021-11-25 06:41:42
laravel_discuss-100607.jpg
anyone can help me please? idk how to solve this problems
2021-11-25 06:50:41
𝐻𝑎𝑣𝑖𝑛𝑔 𝑦𝑜𝑢 𝑎𝑠 𝑚𝑦 𝑎𝑐𝑐𝑜𝑢𝑛𝑡 𝑚𝑎𝑛𝑎𝑔𝑒𝑟 𝑚𝑎𝑘𝑒𝑠 𝑚𝑒 𝑎 𝑐𝒉𝑎𝑚𝑝𝑖𝑜𝑛 𝐼 𝑘𝑒𝑝𝑡 𝑜𝑛 𝑐𝑎𝑠𝒉𝑖𝑛𝑔 𝑜𝑢𝑡 𝑤𝑒𝑒𝑘𝑙𝑦, 𝐼 𝑟𝑒𝑐𝑜𝑚𝑚𝑒𝑛𝑑 𝑦𝑜𝑢 𝑎𝑙𝑙 𝑡𝑜 𝒉𝑒𝑟 @ONLINETRADING02
👆👆👆
Amir_Khaledian 2021-11-25 08:28:10
lxyous 2021-11-25 06:41:42
anyone can help me please? idk how to solve this problems

what you want to do?

lxyous 2021-11-25 08:38:29
Amir_Khaledian 2021-11-25 08:28:10
what you want to do?

using datatables wanna make search fitur and pagination..

Somewherewithmahim 2021-11-25 09:39:04
can anyone tell me that: why npm taking too much time
Somewherewithmahim 2021-11-25 09:39:25
laravel_discuss-100617.jpg

Somewherewithmahim 2021-11-25 09:39:52
and is their any solution that i can follow
Amir_Khaledian 2021-11-25 09:41:36
lxyous 2021-11-25 08:38:29
using datatables wanna make search fitur and pagination..

your job is completely failed. you should using ajax and ‘LIKE’ in query

Somewherewithmahim 2021-11-25 09:44:10
Somewherewithmahim 2021-11-25 09:39:04
can anyone tell me that: why npm taking too much time

anyone

Somewherewithmahim 2021-11-25 09:44:25
Somewherewithmahim 2021-11-25 09:39:25

around 30 min

YOUCODEWORLD 2021-11-25 09:48:05
Somewherewithmahim 2021-11-25 09:39:04
can anyone tell me that: why npm taking too much time

Maybe you try change your DNS

|