Which package are you using for the export process?

|
citizenn2 2021-09-30 09:37:00
who have amazon ses for sale? vs BTC
S 2021-09-30 09:37:52
Hi
Hash password can we show in viee
S 2021-09-30 09:43:16
Hash password can show in blade.php
S 2021-09-30 09:52:18
Reply
foulla_sam 2021-09-30 10:18:10
pranab_k 2021-09-30 09:29:42
Hello All, Can anyone explain me the basics & importance of Roles & Permissions.
Like what is the use of Permissions if a Role will have specific set of restrictions.

Permissions are more specific. For example
If you have an edit product button, if you use role to manage who can edit a product (admin role for example)
If you use permissions to manage who can edit a product, “many” roles can edit a product (admin, seller etc.)

I am not good with explanation but if you want, I can show you a code and you will see why using permissions is the good way

bryan_king 2021-09-30 10:24:53
S 2021-09-30 05:22:57
When forgot password show random password to user

Show the plain random password to the user (Before hashing) if the user accepts the password then you hash the password and store.

pranab_k 2021-09-30 11:28:20
foulla_sam 2021-09-30 10:18:10
Permissions are more specific. For example
If you have an edit product button, if you use role to manage who can edit a product (admin role for example)
If you use permissions to manage who can edit a product, “many” roles can edit a product (admin, seller etc.)

I am not good with explanation but if you want, I can show you a code and you will see why using permissions is the good way

Thank you for the explanation. It would be great if you show some code or a git repo maybe.

I think Authorization and Authentication is the most important and crucial part of an application which have to be implemented perfectly.

For past few days I have been reading articles but nowhere I am satisfied.

Maybe I am not able to understand this properly.

bryan_king 2021-09-30 12:20:01
pranab_k 2021-09-30 11:28:20
Thank you for the explanation. It would be great if you show some code or a git repo maybe.

I think Authorization and Authentication is the most important and crucial part of an application which have to be implemented perfectly.

For past few days I have been reading articles but nowhere I am satisfied.

Maybe I am not able to understand this properly.

It’s a bit challenging at first. Especially authorization. But you will get it with a few tries

pranab_k 2021-09-30 12:58:14
bryan_king 2021-09-30 12:20:01
It’s a bit challenging at first. Especially authorization. But you will get it with a few tries

Thank you Bryan for boosting me up.
I have been investigating a lot of my time to understand the concept of RBAC.

Shiv_95 2021-09-30 13:02:22
Hi guys I hope everyone is doing fine I need your help in one issue I have written a code for exporting csv file the data exports properly by the date format I want is YYYY-MM-DD when I print the array it seems fine but when I check in the excel sheet then it shows like this MM-DD-YYYY I don’t know what’s causing this any help would be appreciated thanks in advance
Habib_Mhamadi 2021-09-30 13:07:22
Shiv_95 2021-09-30 13:02:22
Hi guys I hope everyone is doing fine I need your help in one issue I have written a code for exporting csv file the data exports properly by the date format I want is YYYY-MM-DD when I print the array it seems fine but when I check in the excel sheet then it shows like this MM-DD-YYYY I don’t know what’s causing this any help would be appreciated thanks in advance

That’s Excel’s default date format

Shiv_95 2021-09-30 13:08:03
But i want 2021-09-30 format
nagpal_ji 2021-09-30 13:23:33
anyone how knows removeing index.php from public in laravel
Uttam_hansora 2021-09-30 13:44:45
Index. Php file move in root directory
pinchez2 2021-09-30 14:18:16
pranab_k 2021-09-30 09:29:42
Hello All, Can anyone explain me the basics & importance of Roles & Permissions.
Like what is the use of Permissions if a Role will have specific set of restrictions.

Role -who are you ?
Permission – what should you do

pranab_k 2021-09-30 14:56:42
pinchez2 2021-09-30 14:18:16
Role -who are you ?
Permission – what should you do

In that case can’t we assign permission directly to a user instead of having roles.

foulla_sam 2021-09-30 15:14:43
pranab_k 2021-09-30 14:56:42
In that case can’t we assign permission directly to a user instead of having roles.

Role is a wrapper for some permissions

foulla_sam 2021-09-30 15:15:40
Shiv_95 2021-09-30 13:08:03
But i want 2021-09-30 format

Which package are you using for the export process?

pinchez2 2021-09-30 15:40:19
pranab_k 2021-09-30 14:56:42
In that case can’t we assign permission directly to a user instead of having roles.

What if one user has multiple roles ?

pranab_k 2021-09-30 16:01:47
pranab_k 2021-09-30 14:56:42
In that case can’t we assign permission directly to a user instead of having roles.

I may be wrong here. But below are my understanding till now.

1. Create Permissions
2. Create Role.
2.1 Sync Permissions to Role
3. Sync Role to User
4. Check for the Action if User has permission through roles.

Do we have to Sync Permissions with User (in this case isn’t there will be duplication of data)

Not sure but this is what I’ve understood till now. Please correct me wherever I am wrong.

foulla_sam 2021-09-30 16:42:43
pranab_k 2021-09-30 16:01:47
I may be wrong here. But below are my understanding till now.

1. Create Permissions
2. Create Role.
2.1 Sync Permissions to Role
3. Sync Role to User
4. Check for the Action if User has permission through roles.

Do we have to Sync Permissions with User (in this case isn’t there will be duplication of data)

Not sure but this is what I’ve understood till now. Please correct me wherever I am wrong.

If you implement it by yourself, you will probably duplicate data but some packages are build for that (spatie/permissions, laratrust, bouncer etc.)
In must of those packages you will see this schema:
User <= ManyToMany => Role
Role <= ManyToMany => Permission
User <= ManyToMany => Permission

Some packages use a MorphMany relationship but the idea behind still the same

It is true that you will have duplicate data. For example you can create a permission through a role or through a user. But the package is built to manage this kind of problems

When you check if a user can *edit product* for example, the package will check both in the direct permissions of the user and the user’s permissions through his roles

pranab_k 2021-09-30 16:49:50
foulla_sam 2021-09-30 16:42:43
If you implement it by yourself, you will probably duplicate data but some packages are build for that (spatie/permissions, laratrust, bouncer etc.)
In must of those packages you will see this schema:
User <= ManyToMany => Role
Role <= ManyToMany => Permission
User <= ManyToMany => Permission

Some packages use a MorphMany relationship but the idea behind still the same

It is true that you will have duplicate data. For example you can create a permission through a role or through a user. But the package is built to manage this kind of problems

When you check if a user can *edit product* for example, the package will check both in the direct permissions of the user and the user’s permissions through his roles

Thank you for detailed explanation. I was getting anxious about this topic as I was not getting proper reasoning behind the Data Duplications.

It was good discussion today about this important topic. Thank you @Samankassou @pinchez2 @bryan_king for participating and helping me out.

Relaxed Guy 2021-09-30 16:58:11
guys how do i validate array of images
Relaxed Guy 2021-09-30 16:58:29
‘room_images’=>’required|array’,
‘room_images.*’=>’room_images|mimes:jpeg,png,jpg’,
‘room_amenities’=>’required|array’,
‘room_amenities.*’=>’room_amenities|mimes:jpeg,png,jpg’,
‘amenity_image’=> ‘required’,
Relaxed Guy 2021-09-30 16:58:46
this doesnt work
pinchez2 2021-09-30 17:11:38
pranab_k 2021-09-30 16:49:50
Thank you for detailed explanation. I was getting anxious about this topic as I was not getting proper reasoning behind the Data Duplications.

It was good discussion today about this important topic. Thank you @Samankassou @pinchez2 @bryan_king for participating and helping me out.

You are always welcome

pranab_k 2021-09-30 17:12:36
Relaxed Guy 2021-09-30 16:58:29
‘room_images’=>’required|array’,
‘room_images.*’=>’room_images|mimes:jpeg,png,jpg’,
‘room_amenities’=>’required|array’,
‘room_amenities.*’=>’room_amenities|mimes:jpeg,png,jpg’,
‘amenity_image’=> ‘required’,

laravel_discuss-96003.jpg
Are there any specific use of these

pranab_k 2021-09-30 17:26:08
I’m confused between the following free Laravel Admin Panels with maximum flexibility :

1. Filament (I do not have exp in Livewire)
2. Orchid
3. Voyage
4. Build my own Admin Panel

Any suggestions.

Siberfx 2021-09-30 17:34:25
pranab_k 2021-09-30 17:26:08
I’m confused between the following free Laravel Admin Panels with maximum flexibility :

1. Filament (I do not have exp in Livewire)
2. Orchid
3. Voyage
4. Build my own Admin Panel

Any suggestions.

backpack 🙂

Software_devel0per 2021-09-30 17:35:03
Siberfx 2021-09-30 17:34:25
backpack 🙂

+++

pranab_k 2021-09-30 17:38:34
Siberfx 2021-09-30 17:34:25
backpack 🙂

Yeah it is good, but not free for commercial usage.
It is very costly with Indian Currency, that is why looking for a free alternative.

myfender 2021-09-30 17:58:12
Filament is very easy to implement, orchid for me is better because it is flexible
Sunil Patil 2021-10-01 09:11:32
Hello all,
I need some help. I’m extracting zip file on Google cloud using zip archive but it’s not working.
daydreamer5371 2021-10-01 11:32:04
laravel_discuss-96015.jpg
how to fix this error
foulla_sam 2021-10-01 11:56:09
daydreamer5371 2021-10-01 11:32:04
how to fix this error

Seems like you have an error in you subscription migration file. Share a screenshot

|