Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:20
    scrutinizer-notifier commented #3663
  • 05:20
    scrutinizer-notifier commented #3663
  • 05:20
    valebar synchronize #3663
  • 03:32
    shiroamada synchronize #111
  • 01:18
    shiroamada synchronize #111
  • 01:14
    shiroamada synchronize #111
  • Apr 11 16:11
    welcome[bot] commented #111
  • Apr 11 16:11
    shiroamada opened #111
  • Apr 11 08:32
    scrutinizer-notifier commented #3663
  • Apr 11 08:32
    welcome[bot] commented #3663
  • Apr 11 08:32
    valebar opened #3663
  • Apr 10 11:20
    valebar edited #3662
  • Apr 10 11:18
    welcome[bot] commented #3662
  • Apr 10 11:18
    valebar labeled #3662
  • Apr 10 11:18
    valebar opened #3662
  • Apr 10 07:06
    tabacitu commented #75
  • Apr 10 07:02
    tabacitu commented #3660
  • Apr 10 07:02
    tabacitu commented #3660
  • Apr 10 07:02
    tabacitu commented #3660
  • Apr 10 07:01
    tabacitu commented #3660
greg skinner
@gregwskinner_twitter
Has there been any thought or discussion on changing the default CSS framework from bootstrap to tailwind?
HmInt0101
@HmInt0101
Hi @pxpm, I don't want to use backpack's login and logout functionality. I have my own custom route for that. how can i remove the backpack's login route?
1 reply
HmInt0101
@HmInt0101
@pxpm, To be clear. I have a route 'localhost:9090/admin/dashboard', when i am manually hit this route backpack is redirecting to 'localhost:9090/admin/login', Why this is happening? i don't know. I am having laravel-8 installed.
tabacitu
@tabacitu:matrix.org
[m]
OwenMelbz (Owen Melbourne): you should use “profiles.bio” as the name of the field and column (ommit the entity) and it should work the same in both places.
tabacitu
@tabacitu:matrix.org
[m]
gregwskinner_twitter (greg skinner): not really, no 😀 Open to talk about it - let’s open one on Github. But it always seemed to me like admin panels should come with pre-built components so you can copy-paste them when you need custom stuff. Bootstrap and Backstrap offer exactly that. The only argument Tailwind makes (no two websites should look the same) doesn’t hold for admin panels I think, it’s perfectly fine for admin panels to look like admin panels. Preferable even - you don’t want to make your admins think, you want to make them do, as fast as possible.
tm-blg
@tm-blg

hi all! someone know ho to put my variable into 'show'?

public function setup()
{
    $this->crud->setColumns(
        [
            [
                'name' => 'something',
                'value' => $something
           ]
      ]         

}

HmInt0101
@HmInt0101
Hi @pxpm, i don't want to disable the auth routes of backpack Bcoz it also disable the forgot password functionality as well, So i just want the login page is not to be showed. Only this will be happen, how can i achieve that?
HmInt0101
@HmInt0101
BackpackAuthError.PNG
@pxpm, Now i am getting this error.
HmInt0101
@HmInt0101
@pxpm, I have also done the config:clear, cache:clear, But it is showing the same.
HmInt0101
@HmInt0101
@pxpm , $user->getAttribute('name'). it is giving me this error :"Call to undefined method Auth0\Login\Auth0User::getAttribute()" what should i do and how?
dev_backpack
@backpack_dev_twitter

I struggled in creating an accessor to serve the purpose of showing the players full name concatenated in a different form for their contract CRUD

So I'm trying a different solution which is calling an API for the create it works fine but on the update I don't get the name selected unless if I click on the select options it shows that it is selected

$this->crud->addField([   // 1-n relationship
                'label'       => "Player", // Table column heading
                'type'        => "select2_from_ajax",
                'name'        => 'player_id', // the column that contains the ID of that connected entity
                'entity'      => 'player', // the method that defines the relationship in your Model
                'attribute'   => "fullname", // foreign key attribute that is shown to user
                'data_source' => url("api/players_fullname"), // url to controller search function (with /{id} should return model)
                // OPTIONAL
                'placeholder'             => "Select a Player", // placeholder for the select
                'minimum_input_length'    => 0, // minimum characters to type before querying results
                'model'                   => Player::class, // foreign key model
                // 'dependencies'            => [''], // when a dependency changes, this select2 is reset to null
                // 'method'                  => 'GET', // optional - HTTP method to use for the AJAX call (GET, POST)
                // 'include_all_form_fields' => true, // optional - only send the current field through AJAX (for a smaller payload if you're not using multiple chained select2s)
            ]);
anandphulwani
@anandphulwani

Hey, i am trying to delete some related models and cleaning up files from disk on delete, on execution of a $relatedModel->delete(); it gives the error

message: The DELETE method is not supported for this route. Supported methods: GET, HEAD, POST.

Guys, false alarm, i have found the problem, isnt a backpack issue.

HmInt0101
@HmInt0101
Hi everyone,
how can i create crud inside crud?
any example will be appriciated.
greg skinner
@gregwskinner_twitter

I am seeing some very odd behavior between my local and testing environments. I have a CRUDController that simply has

        CRUD::addColumn(['name' => 'enrollment.person.name','label'=>'Student', 'type' => 'Text']);

In local it works fine. In testing (in AWS) it shows me a 500 error with the following:

It's not you, it's me.
Call to undefined method App\Models\Person::person()
greg skinner
@gregwskinner_twitter

I'm wondering if this is meant to be this way or if it is a bug (in which case I can write it up)....

in tracing the code, backpack 4.1 added

$column = $this->makeSureColumnHasEntity($column);

in Columns.php (trait)

This completely disables the functionality to chain relationships beyond the first level deep (ie enrollment.name works, but enrollment.person.name does not - where enrollment.person = a relationship and name is the field in the related object)

Can someone comment on the way I should be referencing fields that go beyond a single relationship deep?

Catalin Prodan
@prodixx
hey @pxpm ! is it possible to make dependent 2 select2 in repeatable ?
anandphulwani
@anandphulwani

I am seeing some very odd behavior between my local and testing environments. I have a CRUDController that simply has

        CRUD::addColumn(['name' => 'enrollment.person.name','label'=>'Student', 'type' => 'Text']);

In local it works fine. In testing (in AWS) it shows me a 500 error with the following:

It's not you, it's me.
Call to undefined method App\Models\Person::person()

There have been some PR pending for 1-1-1 relationships , i am not sure if this is going to work smoothly, you can look up for my comments with Pedro(pxpm) over the same, maybe that helps.

Catalin Prodan
@prodixx
@pxpm i have found this pull request Laravel-Backpack/CRUD#3275 for my problem with dependent in repeatable but in cannto figure it out how to add row number to it ...
ShekharKokate
@ShekharKokate
Hi Everyone,
I am using repeatable field and I have added two more fields. I want to add the index counter for each group e.g. if add 2 text input and added the id="index". I want to increment the counter as index1, index2 etc.
How can I do it?
HmInt0101
@HmInt0101
Hi @pxpm, can you plz provide me a demo link example of crud inside another crud.
Pedro Martins
@pxpm
@backpack_dev_twitter odd, indeed, did you tried with the relationship fields and fetch with custom query ?
@gregwskinner_twitter can you please check if Laravel-Backpack/CRUD#3606 fixes your issue ?
If it does, please write it down in the comments, it would help to speed up the merging process
@anandphulwani check the same PR i mentioned to @gregwskinner_twitter
this is the PR that would allow that
@ShekharKokate repeatable already have the row number is that what you are looking for ?
Pedro Martins
@pxpm
@HmInt0101 The most close thing we have to a crud inside other crud is the InlineCreate https://backpackforlaravel.com/docs/4.1/crud-operation-inline-create
Catalin Prodan
@prodixx

@prodixx Laravel-Backpack/CRUD#3439

is it live on demo, dummies or monsters crud?

Pedro Martins
@pxpm
No, it's not!
also heads up, we are aware that when used with select2_from_ajax, as it defaults to GET, it could fail due to long url when the repeatable gets big Laravel-Backpack/CRUD#3608
Catalin Prodan
@prodixx
i';ve saw that
i've managed to make some progress with fetchoperation and POST
i'm trying to add some attributes on a product crud. and i have made a repeteable with 2 selects2 inputs - attribute and value
i've created 2 cruds - Attribute and AttributeValue with hasmany relation.
Pedro Martins
@pxpm
that PR is missing the last bit, that is passing which row triggered the request
Catalin Prodan
@prodixx
the repeteater works but i see all the AttributeValues despite chosing the parent
Pedro Martins
@pxpm
I will ping you on github
Константин Казначеев
@spam2_gitlab
Colleagues, good afternoon! Need your help implementing multilingual fields. I would like their translation to be done right there. Now I use spatie\translatable
Made it show several fields based on the list of locales predefined in env. But until we figure out how to stuff them into json.
Tell me, can anyone have thoughts or a solution?
Pedro Martins
@pxpm
@spam2_gitlab doesn't https://backpackforlaravel.com/docs/4.1/crud-operation-update#translatable-models work for your needs ? Or what ?
Константин Казначеев
@spam2_gitlab

@spam2_gitlab doesn't https://backpackforlaravel.com/docs/4.1/crud-operation-update#translatable-models work for your needs ? Or what ?

This could solve my problem, but for reasons I do not understand yet, the choice of language in the list is not displayed for me.

Pedro Martins
@pxpm
you can manually set the translations of something with $model->setTranslation()if I recall from spatie
@spam2_gitlab could it be because of the languages you have enabled in your config file ?
Nathan Bolender
@nbolender
Hey guys, I keep running into the issue where a field (say, a text field) is nullable but has default set, so if you set it to null (blank) then go back to edit, the default value appears instead of staying blank. Do we think this is expected behavior? The docs don't mention the update operation when taking about the default attribute.
HmInt0101
@HmInt0101
Hi @pxpm,
i have seen this "Inline-crud-operation", But that is not what i am looking for i need the whole crud thing on an entity.
on click of that entity the name that entity will show on a page and then i can enable a user to this or disable the user.
Dimitar Topalov
@o15a3d4l11s2
@pxpm , here I am :)
Senthur
@senthur-kumaran
Screenshot from 2021-04-11 14-21-43.png
Is It documented correctly? I think we want to overwrite something like the below. I tried It is working. What do you think?
public function destroy($id) { //what ever......... return $this->traitDelete($id); }
HmInt0101
@HmInt0101
Hi @pxpm,
how can i make sidebar contents like click on a drop-button the list of menu drops how can i do that?