How to use firebase with laravel?

|
AlaaDq 2020-02-29 15:02:18
Eloquent: API Resources
Roham0010 2020-02-29 15:07:51
AlaaDq 2020-02-29 15:02:18
Eloquent: API Resources

API Resource is for shape of response data in an API but Request classes are for validating income data from a form or a client to the API

AlaaDq 2020-02-29 15:08:35
Roham0010 2020-02-29 15:07:51
API Resource is for shape of response data in an API but Request classes are for validating income data from a form or a client to the API

👌 ok

AlaaDq 2020-02-29 15:09:11
one more question
AlaaDq 2020-02-29 15:10:15
what about
policy or gates vs passport or jwt
when i want to protect api
Roham0010 2020-02-29 15:11:19
First two is for web authentication and second two is for API authentications
AlaaDq 2020-02-29 15:12:03
ok thank u
Roham0010 2020-02-29 15:13:18
Passport an JWT are for authenticating user and give him a token so he can access his profile with that token from a client
sadeqi125 2020-02-29 16:16:44
why when i login in my system go to home page and reirect to login
sadeqi125 2020-02-29 16:16:56
can help me any one
sadeqi125 2020-02-29 16:16:59
please
skys215 2020-02-29 16:22:38
sadeqi125 2020-02-29 16:16:44
why when i login in my system go to home page and reirect to login

you need to find out which code is redirecting you

sadeqi125 2020-02-29 16:23:22
i think when i login system cant be get login user
sadeqi125 2020-02-29 16:24:33
i set my rout in the
sadeqi125 2020-02-29 16:24:35
Route::group( [‘middleware’ => ‘auth’ ], function(){
sadeqi125 2020-02-29 16:24:49
and use laravel user
skys215 2020-02-29 16:25:39
try use xdebug to see the process
sadeqi125 2020-02-29 16:26:28
my system local work
sadeqi125 2020-02-29 16:26:53
but when i upload in cpanel its not work
skys215 2020-02-29 16:27:34
maybe the problem is with rewrite module
Roham0010 2020-02-29 17:01:03
sadeqi125 2020-02-29 16:26:53
but when i upload in cpanel its not work

Check log files

Eduardo Oliveira 2020-02-29 18:24:49
Between GraphQl and Swagger, do you have any preferences?
skys215 2020-02-29 18:25:27
I think GraphQL and Swagger is completely different things
noobmaster622 2020-02-29 20:32:28
Is laravel booting the whole framework on each request.?
Isng it very very slow and inefficient
skys215 2020-02-29 20:33:08
I think PHP is designed like that.
Or you can you swoole
dacrixk 2020-03-01 08:38:51
laravel_discuss-28430.jpg
Getting this error in Digitalocean space
lawaloladipupo 2020-03-01 08:39:40
noobmaster622 2020-02-29 20:32:28
Is laravel booting the whole framework on each request.?
Isng it very very slow and inefficient

Yes and no. It loaded them without using them! It has a cache of all the files paths and class names with the help of composer and it loads what each request needs. For example, if a request doesn’t need to use redis, then the redis parts of the code will just be dormant. And also, Laravel is fast and everyday they are working to make it faster so you shouldn’t worry much about that. For more info read about the service container and request lifecycle on the documentation page.

skys215 2020-03-01 08:51:03
dacrixk 2020-03-01 08:38:51
Getting this error in Digitalocean space

It says forbidden, seems like authentication problem

Kartik Arora 2020-03-01 10:02:31
How to use firebase with laravel ?
faskt95 2020-03-01 10:12:26
dacrixk 2020-03-01 08:38:51
Getting this error in Digitalocean space

Which aws service are you trying to connect too

faskt95 2020-03-01 10:12:31
S3?
prime 2020-03-01 10:29:40
ookey…..am deploying the laravel system on shared server …. but the csrf isn’t working …what seems to be a problem..?
prime 2020-03-01 10:30:46
also i get 419 error .. “page expired”….
stefan_ssv 2020-03-01 11:45:22
Hi guys
Some time ago i have started to look over java spring and tried to compare it with laravel and faced troubles evevn on simple hello world implementation in spring mvc

Question: java spring is not for small sites or services and its trully much complicated than laravel?

Roham0010 2020-03-01 11:47:43
stefan_ssv 2020-03-01 11:45:22
Hi guys
Some time ago i have started to look over java spring and tried to compare it with laravel and faced troubles evevn on simple hello world implementation in spring mvc

Question: java spring is not for small sites or services and its trully much complicated than laravel?

Yes it’s very complicated with specific tools you have to use just them also it has less community than Larsvel
But PHP Laravel isn’t like that

stefan_ssv 2020-03-01 11:49:52
Ehm… so the concept of microservices implemented on spring is basically unreal in cause of spring itself?
stefan_ssv 2020-03-01 11:50:58
As I understand microservice should be fast in work and implementing
As i can see spring loses many points in bechmark comparising with laravel
stefan_ssv 2020-03-01 11:51:32
And much more complicated as well
stefan_ssv 2020-03-01 11:53:55
So implementing webhooks gateway for example on spring will be bad idea
Roham0010 2020-03-01 11:57:58
stefan_ssv 2020-03-01 11:49:52
Ehm… so the concept of microservices implemented on spring is basically unreal in cause of spring itself?

I don’t know that much about that, I have just done one project with spring it was really hard to understand and use

Roham0010 2020-03-01 12:01:00
In small projects Laravel vs spring, Laravel is best choose but in big projects there are some benefits in both
Also in big projects spring coding speed will go up
stefan_ssv 2020-03-01 13:09:18
Ok thank you
stefan_ssv 2020-03-01 13:09:28
i have one more question, about horizon
stefan_ssv 2020-03-01 13:09:51
i have 1 queue with different amount of jobs to be processed during the day
stefan_ssv 2020-03-01 13:10:50
and i want supervisor to add workers if there is many jobs
or stop workers if there is no jobs

*the main problem now is in always running workers which generates connections to DB and Redis

stefan_ssv 2020-03-01 13:11:34
when i set min_process and max_process values a see no result
stefan_ssv 2020-03-01 13:11:56
just because i see all of these workers are running in the same time
stefan_ssv 2020-03-01 13:13:51
question: what should i add to horizon config to make it manage launched workers correctly?
Roham0010 2020-03-01 13:53:23
https://laravel.com/docs/7.x/releases
Suraz Ghimire 2020-03-01 15:05:51
Guys. I’m looking for a Laravel developer for a long term project. In case anyone is available, plz do let me know. You can ping me personally.
|