How to know the query come to server was other front application, not my front application?

|
Dilawar Naseem 2021-09-17 08:29:23
laravel_discuss-94769.jpg

Dilawar Naseem 2021-09-17 08:29:23
laravel_discuss-94768.jpg

Dilawar Naseem 2021-09-17 08:29:23
laravel_discuss-94767.jpg

Dilawar Naseem 2021-09-17 08:29:34
Please help me with this
WebBackend 2021-09-17 09:36:04
Assalomu aleykum! Hi everybody!

How can i secure my api?
How to know the query come to server was other front application, not my front application?

poppyhusk 2021-09-17 09:36:32
Dilawar Naseem 2021-09-17 08:29:23

what is DB::tbl_employees?

poppyhusk 2021-09-17 09:37:03
its DB::table(‘tbl_employees’)->select(…..
Dilawar Naseem 2021-09-17 09:37:36
Let me try brother
poppyhusk 2021-09-17 09:37:47
WebBackend 2021-09-17 09:36:04
Assalomu aleykum! Hi everybody!

How can i secure my api?
How to know the query come to server was other front application, not my front application?

use authorization for APIs using policies and can middleware.

poppyhusk 2021-09-17 09:38:22
Dilawar Naseem 2021-09-17 08:29:23

And you cannot run select queries directly over model. You need to take a blank query object from model.

poppyhusk 2021-09-17 09:38:40
Dilawar Naseem 2021-09-17 09:37:36
Let me try brother

read docs properly.

poppyhusk 2021-09-17 09:39:13
omar khaled 2021-09-16 23:18:32
What’s the defrence between
Authorization, Authentication

A very cool question asked by omar.

poppyhusk 2021-09-17 09:40:57
Authentication is a process of identifying user in your system through specific credentials.
many7523 2021-09-17 09:41:06
WebBackend 2021-09-17 09:36:04
Assalomu aleykum! Hi everybody!

How can i secure my api?
How to know the query come to server was other front application, not my front application?

Use passport package to check it. Passport package manage all things

poppyhusk 2021-09-17 09:41:54
Authorization on the other hand is used to determine of currently authenticated user is allowed to read or write specific resources.
poppyhusk 2021-09-17 09:42:11
*determine the…
poppyhusk 2021-09-17 09:43:26
WebBackend 2021-09-17 09:36:04
Assalomu aleykum! Hi everybody!

How can i secure my api?
How to know the query come to server was other front application, not my front application?

Implement authentication and authorization at required places. Packages: JWT Auth, Passport, Sanctum, etc.

poppyhusk 2021-09-17 09:44:16
ajkhairnar 2021-09-17 08:12:38
Any one know how to write backup script of MySQL and postgresql.
Pls help

basically you need to run a job that exports a mysql database.

poppyhusk 2021-09-17 09:48:39
vikaskumar_99 2021-09-16 12:34:41
Hello developers i need help.
I have a form which have country -> state -> city dependent dropdown, when i edit the form, how to keep selected state and city data. I am using ajax call.

Got it, you need to load cities only when a state is selected.

poppyhusk 2021-09-17 09:49:11
little correction load states only when a country is selected.
poppyhusk 2021-09-17 09:49:21
And i hope your city field is a text field.
poppyhusk 2021-09-17 09:50:09
Kashyap Parikh 2021-09-16 14:15:17
Hi I have inserted data using tinker in database in two tables yesterday but today when i open phpmyadmin today data is dissappered

you didn’t called that model save methods at the end.

poppyhusk 2021-09-17 09:50:54
Bhavyakumar Panchotiya 2021-09-16 09:33:01
i have no data into the database still show the pagination and Url (/page=1) in laravel how to solve it ?

use model count method

WebBackend 2021-09-17 09:51:03
poppyhusk 2021-09-17 09:37:47
use authorization for APIs using policies and can middleware.

bro i used auth and middleware

WebBackend 2021-09-17 09:51:51
poppyhusk 2021-09-17 09:43:26
Implement authentication and authorization at required places. Packages: JWT Auth, Passport, Sanctum, etc.

jwt auth used

poppyhusk 2021-09-17 09:52:34
Now you need authorization to be completed.
poppyhusk 2021-09-17 09:52:45
Just implement policies and use csn middleware.
poppyhusk 2021-09-17 09:52:55
*can
poppyhusk 2021-09-17 09:53:21
https://laravel.com/docs/8.x/authorization
vikaskumar_99 2021-09-17 09:54:38
poppyhusk 2021-09-17 09:49:21
And i hope your city field is a text field.

Yeah it’s a Text field

Kashyap Parikh 2021-09-17 09:54:47
poppyhusk 2021-09-17 09:50:09
you didn’t called that model save methods at the end.

I did

poppyhusk 2021-09-17 09:55:15
Kashyap Parikh 2021-09-17 09:54:47
I did

do it again and inside a try catch block.

PHP Begginer 2021-09-17 11:10:56
Goodmorning all ? How do you set up local env server for testing via mysql ? I would like to use mysql rather then sqlite .Any guide to set up testing via mysql database
Relaxed Guy 2021-09-17 11:17:30
PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in /Applications/XAMPP/xamppfiles/htdocs/yotta-Dashboard-/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 853
Dkhicher 2021-09-17 11:31:01
Relaxed Guy 2021-09-17 11:17:30
PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in /Applications/XAMPP/xamppfiles/htdocs/yotta-Dashboard-/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 853

After php upgrade ?

|