Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:34
    pxpm commented #4374
  • 10:28
    pxpm labeled #4380
  • 10:28
    pxpm unlabeled #4380
  • 10:28
    pxpm unlabeled #4380
  • 10:28
    pxpm commented #4380
  • 08:21
    adrienne commented #4090
  • 08:20
    adrienne commented #4323
  • 08:16
    tabacitu assigned #4374
  • 08:02
    tabacitu commented #4329
  • 07:59
    tabacitu assigned #4377
  • 07:47
    adriallongarriu commented #4380
  • 07:10
    tabacitu commented #4379
  • 07:09
    tabacitu labeled #4379
  • 07:09
    tabacitu assigned #4379
  • 07:09
    tabacitu unassigned #4379
  • 07:09
    tabacitu unassigned #4379
  • 07:09
    tabacitu assigned #4379
  • 07:08
    tabacitu commented #4379
  • 07:08
    tabacitu commented #4379
  • 07:07
    tabacitu commented #4379
Steve Williamson
@swilla
I'm just looking for the header and footer, I guess I may need to publish those files or something? Because I don't see it
Thomas Merlen
@ThomasMrln

Hello,
I can not publish files from the new pro directory. Why ?

I was trying some cli command like that :
php artisan backpack:publish fields/relationship/inc/inline_create_button

3 replies
Thomas Merlen
@ThomasMrln
  1. Other little question :
    Can I make a select2_from_ajax readonly ? I add the 'attributes' => [ 'readonly' => 'readonly' ] but no reaction
5 replies
Jerold Shilamba
@jerold04
Hi, anyone had any luck uploading to S3 bucket using field type image in backpack pro? Just want to know if I need to install the following package:
league/flysystem-aws-s3-v3
2 replies
Abdikafar
@abdikafar
hello, I am facing a little issue here here. I am passing url parameter from another controller and can capture and use the parameter in the list operation where i add clause to list based on that paramter.
$id = request()->input('id', '');
$this->crud->addClause('where', 'flight_id', '=', $id);
the question how do i pass the same paramter to create opration i want to populate that paramter with a field. thanks.
7 replies
JOSE DAVID DIAZ
@JOSE-731

0

I need help. I am currently working with Laravel backpack and I have the following problem: I have a field called Media, that field has two behaviors, one to upload images and the other to write a URL, the problem is that it only lets me create the one time the field. Is there a way in laravel backpack to create 2 different fields with the same name?

I want to achieve something more or less like this:

CRUD::addField([ 'name' => 'data', 'label' => 'url_media', 'type' => 'upload', ]);

CRUD::addField([ 'name' => 'data', 'label' => 'url_media', 'type' => 'url', ]);

2 replies
gkamaratak
@gkamaratak

Hello ,

Using repeatable field , I have select2 fields as subfields in that repeatable field. Everything works ok until reordering. After re-ordering the rows , the elements are not clickable anymore . Tried select instead of select2 and it seems (in the repeatable view) as it clones the elements it does not clone the selected value. As for select2 the same happens as well plus it seems i have to destroy select2 and re-init it after clone.

Tried this for one element , if I have more selects in the repeatable row it becomes a mess.

Any ideas? Am I missing something ? Is there a patch or a tip about it?

Thanks

8 replies
Gary Norton
@gn0rt0n

I am trying to figure out the best way to clone an item that has unique constraints.

I can exclude/modify the attributes I want prior to the $clonedEntry->push() action, but what I really want to do is pass all the attributes I have (minus the ones that are unique) to the Create view and have it populated with the values from the replicate method.

Can this be done easily, I'm not sure if there might be a different way. Basically, I want users to be able to edit/update the replicated attributes pror to saving the record.

Pedro Martins
@pxpm
@alexsol22 it would probably be possible but not using the default list, create a new operation MultipleListsOperation, basically a clone of the list one but with the changes you need. publish the list views and modify them for your custom operation, like list.blade.php call it multiple_list.blade.php etc and show whatever you need in your new operation. That way you can still use the Backpack ListOperation when needed in your other cruds
@gn0rt0n take from example the CloneOperation, copy it to CloneAndCreateOperation, write your magic, it should be pretty straigthfoward and easy to do.
ibanez32
@ibanez32
Hi, im trying to integrate a relationship field but i get this error : Route [super-sector-inline-create-save] not defined.
1 reply

My code ;

CRUD::addField([
'type' => "relationship",
'name' => 'superSector', // the method on your model that defines the relationship
'ajax' => true,
'inline_create' => true, // assumes the URL will be "/admin/category/inline/create"
]);

JOSE DAVID DIAZ
@JOSE-731

Hello, I am working with a load type field, when saving it does it successfully, the problem is when editing something like: image is required, but I do not understand why that error appears if in the type field uploads is the image path

$this->crud->addField([
'name' => 'imagen',
'label' => 'Image',
'type' => 'upload',
'upload' => true
]);

333
@gary3333333333_twitter
hi, it is safe to resell my backpack license key to others ?
Pedro Martins
@pxpm
@gary3333333333_twitter It depends on the context you are asking, but probably you can reach out to @tabacitu:matrix.org and have the license information changed for the new owner or something.
Thomas Merlen
@ThomasMrln
This message was deleted
maufernan
@maufernan

Hello,

we have the product of a DB select, which we want to show with the backpack CRUD, is there any way to do it , https://stackoverflow.com/questions/72024697/use-product-of-select-bbdd-with-the-crud-of-backpack

Steve Williamson
@swilla
I'm having issues with the "Select2 Multiple" field when I remove all selections, they do not get removed in the database:
https://backpackforlaravel.com/docs/5.x/crud-fields#select2_multiple-n-n-relationship-pro
Babaiev Ihor
@bald-cat
Hello. How can I hide search input?
2 replies
Pedro Martins
@pxpm
@swilla if the relation_key is nullable in database use force_delete => true in an HasMany relation
Tem Balanco
@tembalanco
Hi, can we use Backpack to create and model our DB? We currently use QuickAdminPanel.com and although the db modeling is great, we'd rather work on something with a nicer UI and features like Backpack. Thanks for your help.
Jerold Shilamba
@jerold04
Hi,
I installed the permissions manager, but when I try to save the users after selecting the roles and permissions, I get an error stating "Undefined array key "model"". I followed the documentation when setting up, and went through it quite a few times. Any ideas as to what I could have possibly missed? Do I need to add any sort of relationship on the User Model as I imported CrudTrait and HasRoles?
Pedro Martins
@pxpm
@jerold04 what versiion are you using ? php artisan backpack:version
5 replies
lando calrissian
@landoCalrission_twitter
Hi, is there an existing package or a best practice tutorial to enable Google 2 Factor Authentication for Backpack 4/5? I need to estimate the hours for an offering. thx a lot
1 reply
Jack Fruh
@JackFruh_twitter
Lando, I recently did a project with Azure AD auth - I think if you're experienced, maybe it's an hour or two? If you're brand new, then it will take longer. Be sure to test it thoroughly - backpack has its own user auth system, so you'll end up with two auth systems, and you have to take extra steps to disable backpack's auth, or you'll have a potential back door.
Alex Bedendo
@bedoz
Hi guys i have one simple question, i need to buy single pro package for a customer site. I can use the same license for locale and test server or i need to buy it 3 times?
Pedro Martins
@pxpm
@bedoz same licence for local/staging/prod, one licence and you are fine.
Alex Bedendo
@bedoz
thank you @pxpm
ibanez32
@ibanez32
hi, wonder if i can set a secondary edit operation ? (i would like to keep the default edit operation, and add another one with more details/fields) ?
thank you
2 replies
Pedro Martins
@pxpm
@ibanez32 in your setupUpdateOperation you can do some conditional check to add fields, like if(backpack_user()->hasRole('admin')) { // show admin only fields }.
Mauro Foti
@mfoti
Hi all, someone knows if I can run backpack with doctrine? can't find any useful answer online
Pedro Martins
@pxpm
Hello. I guess the answer is yes... But, what you have in mind? Laravel comes by default with doctrine orm, backpack is a laravel package, so you should be fine.
Mauro Foti
@mfoti
I want to port an app from symfony/sonata (with doctrine2) to laravel/backpack, and I'd like to know if I can still use doctrine. of course I need to do a lot of less work if I don't need to change all entities
Pedro Martins
@pxpm
haa sorry, you were rigth, backpack uses eloquent orm (the default Laravel one). I am not sure it will work as I've never tried, but you can easily setup a backpack project and spin a quick test on it
ibanez32
@ibanez32
hi, can i ask if there is an implementation of impersonation in backpack 5 ? i found this repo 404labfr/laravel-impersonate but dosent seem to work with backpack 5
Pedro Martins
@pxpm
@ibanez32 are you sure the problem is Backpack ? We fixed something similar some months ago. spatie/laravel-permission#2048
it could be other package that you have installed
Денис Апекин
@apekindd:matrix.org
[m]
Hello. Please tell me, for some reason, in our admin panel, the scripts that are responsible for displaying various kinds of pop-ups, for example, on the icon with the menu "my profile, exit" or on the button where there are other options to save the record and perform an additional action, work only on the second click - with the first time nothing happens, but the second time it already fulfills the click event.
Thank you
1 reply
Ward Vandenberghe
@WrdVdb

Is it possible to add a delete button to a record detail page?
Save and back - Cancel - Delete

Now it seems to be only possible to delete a record from the list.

Vince Poile
@vpoile_twitter
I'm a newbie at backpack so my issue maybe totally my own fault. I'm trying to implement the permission manager (in a completely fresh laravel app to try it out before integrating for real). I believe I've followed the instructions correctly but I am constantly getting stuck at the point of of adding/editing users. I get this error: https://flareapp.io/share/VmeYGMym#F58 I can't see any issues related to it in documentation or in issues lists or a decent google so thought I would just ask what am I doing wrong?!!!
2 replies
charlfields
@charlfields:matrix.org
[m]
Can I use Backpack DevTools Add-on with PostgreSQL?
1 reply
Edgar Landivar
@elandivar
Hello, anyone having problems with select or select2 showing a text input instead of a dropdown menu?... i'm using Backpack 5 and Laravel 9... i have tested with the simplest model possible.
Vince Poile
@vpoile_twitter
I'm struggling with the spatie/laravel-translatable functionality, I've installed the package as per instruction, language options show up, but inside the fields on display it only shows the first locale. If I type something different in a second locale, it does store that in the database eg {"en":"content en","cy":"content cy"} if I go back and edit this again, only the en data is populated, regardless of the language selected. Has anyone else had this problem and fixed it?
gkamaratak
@gkamaratak

Hello,

By searching github and stackoverflow , I haven't yet understand if it is possible to have "Upload" field as subfield in Repeatable ?

Using "browse" so far , but browse is a little bit problematic for me because I don't want other users to see whats inside the storage folder...I want to control what a user can see and with Elfinder I think it starts to be more complicated.

Best regards

Paul Preibisch
@firecentaur
hi there, I am trying to use the address_google field
abuitron
@abuitron
Good Afternoon i wish know if i can upgrade the packages of backpack with the same purchase code
Paul Preibisch
@firecentaur
hi everyone, how do I get a list of icons to use from backpack, and how do I use them in blade file?
1 reply
Catalin Prodan
@prodixx
hello. is it possible to use a repeatable field inside repeatable field?