Framework or cms?

|
MasouddAmirii 2020-03-17 18:56:42
Hi
What can i use beside socialite, to login with microsoft account
DesolatorMagno 2020-03-17 18:57:43
Microsoft API, You can work with it direct.
berto309 2020-03-17 20:23:25
Hi y’all .. please i’m using laravel/spatie activitylog and i’m able to get the activity records but the causer id and causer type are null. How do I get the causer id and type values
2020-03-17 20:39:38
anyone familiar with coinpayments api? I have setup everything but it says Error: No currency2 set! what can be the reason for this ?
AlaaDq 2020-03-17 22:27:41
Anyone familiar with caching concept and why and how we use it
php artisan route:cache
Boss_meet 2020-03-17 22:37:12
we use because its save some data like password or permission in ur projects
stefan_ssv 2020-03-17 22:38:43
2020-03-17 20:39:38
anyone familiar with coinpayments api? I have setup everything but it says Error: No currency2 set! what can be the reason for this ?

seems you have to specify currency2 when you initiating payment class

ayberk 2020-03-17 22:50:13
AlaaDq 2020-03-17 22:27:41
Anyone familiar with caching concept and why and how we use it
php artisan route:cache

Caching more general concept rather than route:cache. Both of them mentioned on laravel docs under caching section

ayberk 2020-03-17 22:51:33
Google is your friend 😊
ayberk 2020-03-17 22:51:48
Use geoip more spesific topics
ayberk 2020-03-17 22:51:56
*group
2020-03-17 23:01:25
2020-03-15 13:44:09
Thanks alot my machine is now down we have load shedding. When am able to bring it up I will Start from here …noted

It was null cheers thanks

2020-03-17 23:01:46
Works now
jnaghiloo 2020-03-17 23:15:22
hi friends
how can I validate user id that I receive in UserRequest ?
this is my UserController show method

public function show(UserRequest $request, User $user){
}

DesolatorMagno 2020-03-17 23:29:00
What you mean with validate?
jnaghiloo 2020-03-17 23:30:45
DesolatorMagno 2020-03-17 23:29:00
What you mean with validate?

in this method I will show user model via GET /users/{id}
i wanna show error if user insert id that there is not on db

but validating in that request i made -> UserRequest

DesolatorMagno 2020-03-17 23:31:48
If you use id you have to do it at hand, bit using User $user
It does it automatically.
jnaghiloo 2020-03-17 23:32:50
DesolatorMagno 2020-03-17 23:31:48
If you use id you have to do it at hand, bit using User $user
It does it automatically.

but it does not,
I faced this error

“message”: “No query results for model [App\User] 5”,

DesolatorMagno 2020-03-17 23:32:51
In any case, I think that findOrFail() is what is called the method that either return the row or a 404.
Iootes 2020-03-17 23:33:50
Hello all.İ need your help in some issued.İf İ use manual auth, can i use login throttling?
Iootes 2020-03-17 23:33:55
İn laravel
DesolatorMagno 2020-03-17 23:34:50
jnaghiloo 2020-03-17 23:30:45
in this method I will show user model via GET /users/{id}
i wanna show error if user insert id that there is not on db

but validating in that request i made -> UserRequest

Because you don’t validate it there, a validation error is a validation error.

Iootes 2020-03-17 23:35:02
Can you help me with some code examples?
jnaghiloo 2020-03-17 23:35:41
DesolatorMagno 2020-03-17 23:34:50
Because you don’t validate it there, a validation error is a validation error.

It’s my question exactly
in this way how can I validate that?

DesolatorMagno 2020-03-17 23:36:09
If you want to return 404.
jnaghiloo 2020-03-17 23:36:33
DesolatorMagno 2020-03-17 23:36:09
If you want to return 404.

where do you mean should I add findOrFail() ??

jnaghiloo 2020-03-17 23:38:16
DesolatorMagno 2020-03-17 23:36:09
If you want to return 404.

this is my method

public function show(UserRequest $request, User $user): UserResource
{
return new UserResource($user->load(‘boards’));
}

DesolatorMagno 2020-03-17 23:40:13
If you wish to return a validation error verify inside the requestForm, if you want to return another kind of response (json, 404, etc) do it in the controller or any special object
jnaghiloo 2020-03-17 23:43:01
DesolatorMagno 2020-03-17 23:40:13
If you wish to return a validation error verify inside the requestForm, if you want to return another kind of response (json, 404, etc) do it in the controller or any special object

I am returning Resources in all endpoints, but it’s not best practice validating in the controller

so in this scenario, I don’t know what should I do

DesolatorMagno 2020-03-17 23:48:30
I don’t get you, I really don’t get you, if the user ID is not valid you just return a json or whatever
Error:
Message:user don’t exist

Or something like that

Check a video or something about api, surely they can explain it better

DesolatorMagno 2020-03-17 23:48:58
When in doubt, see what others do.
jnaghiloo 2020-03-17 23:49:55
DesolatorMagno 2020-03-17 23:48:30
I don’t get you, I really don’t get you, if the user ID is not valid you just return a json or whatever
Error:
Message:user don’t exist

Or something like that

Check a video or something about api, surely they can explain it better

thank you for your time man 👍

2020-03-18 00:45:04
if i create our company to webdeveloper whats is best (framwork or cms ) to make websites to client’s ?
ayberk 2020-03-18 00:53:00
2020-03-18 00:45:04
if i create our company to webdeveloper whats is best (framwork or cms ) to make websites to client’s ?

it depends on your customer needs and also your bussiness plan. nobody can say anything without see customer needs.

ayberk 2020-03-18 00:54:02
for example if your customer need cms you can choose java, .net, php and related frameworks but your customer need real time data process you should look another framework and programming languages :/
2020-03-18 00:56:38
for ecommers and news
^_* 2020-03-18 00:58:21
laravel_discuss-29956.jpg
whats the issues when i do any things for composer
ayberk 2020-03-18 01:01:52
2020-03-18 00:56:38
for ecommers and news

ecommerce and news sites need very easy requirements if you dont give service big ecommerce and news sites.

2020-03-18 01:02:11
whats is best ?
2020-03-18 01:02:18
framework or cms ?
ayberk 2020-03-18 01:02:22
you should look price/performance programmers in your country.
ayberk 2020-03-18 01:02:50
which programming language used in your country that you can hire developers.
2020-03-18 01:04:00
php
ayberk 2020-03-18 01:04:05
for example in my country there is no lots of php developer. instead of we should use java or .net because lots of developer know that language.
ayberk 2020-03-18 01:05:19
so you should hire php developer and you are not involve this decision. developer should decide which framework should used in project.
ayberk 2020-03-18 01:05:34
you are boss you are not engineer or programmer.
ayberk 2020-03-18 01:07:22
because you can not defend it, developer easily mislead you.
ayberk 2020-03-18 01:07:53
developer use lots of technical keywords and you cannot understand anything :S and this is very normal.
ayberk 2020-03-18 01:08:32
if you think establish software company, you look technical co-founder
ayberk 2020-03-18 01:08:34
*should
|