Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 07:54
    enefeka opened #3368
  • 07:54
    enefeka labeled #3368
  • 04:13
    ziming commented #3347
  • 00:54
    ziming commented #3347
  • 00:53
    ziming commented #3347
  • 00:50
    ziming commented #3347
  • 00:26
    scrutinizer-notifier commented #3348
  • 00:26
    scrutinizer-notifier commented #3348
  • 00:16
    promatik commented #3348
  • 00:14
    scrutinizer-notifier commented #3348
  • 00:14
    scrutinizer-notifier commented #3348
  • 00:14
    promatik synchronize #3348
  • 00:14

    promatik on select-ajax-filter-with-fetch

    filter_key > filterKey (compare)

  • Dec 01 22:47
    promatik unlabeled #3367
  • Dec 01 22:47
    promatik labeled #3367
  • Dec 01 22:47
    promatik labeled #3367
  • Dec 01 22:47
    promatik assigned #3367
  • Dec 01 22:47
    promatik commented #3367
  • Dec 01 22:20
    dnwjn commented #3358
  • Dec 01 22:18
    promatik commented #3358
Marcus
@marcus-at-localhost
I installed Statamic 3 into an existing Backpack project. After messing with Users/Permission, I was able to access statamic and create a first page, but all I ge its a backpack 404 page on the frontend. Statamic claims its routing works out of the box: https://statamic.dev/routing - any hint, how to debug this?
Marcus
@marcus-at-localhost
Ok, this wasn't a backpack issue, but a statamic issue with missing views and what not. Has anybody experience running backpack& statamic side by side? Any pitfalls to be aware of?
Wesley Smith
@DoDSoftware
@marcus-at-localhost Hmm, I hadn't heard of Statamic. I took a read through their site and documentation. It looks pretty cool in its own right. For the applications I build, I don't think mixing Statamic into my sites with Backpack would be beneficial to my workflow. The packages/platforms seem to have somewhat opposing philosophies. Perhaps though your projects could benefit from the use of both. After you've worked with them a bit together I'd love to hear back from you regarding your experience and they ways you've used parts of each together to build something awesome. Happy coding!
Marcus
@marcus-at-localhost
The way I aim to use both is, to have statamic take care of building the typical website stuff and backpack to deal with data in legacy databases and tabular data in general, that will be rendered in statamic or in a custom route. Not sure how this all will work out :) - but I will report. Thanks!
Daniel Ng`andu
@DanielNgandu
Hey guys, i am getting this error 'BadMethodCallException
Call to undefined method App\Models\User::identifiableAttribute()', how do i fix it on Laravel 7 + Backpack v4 ?
Pedro Martins
@pxpm
Hello @DanielNgandu , make sure your model is using CrudTrait. Best
Daniel Ng`andu
@DanielNgandu

Hello @DanielNgandu , make sure your model is using CrudTrait. Best

Thanks, I got it working.

Antony Peiris
@antony.peiris_gitlab
@DelightedD0D Thanks for your response! :) I'm well beyond those getting-started vids on the site, and am familiar with the documentation as well. I reference it all the time when I am adding features, managing relationships and stuff. If the community can add more advanced stuff, that would be really awesome. As for specific topics, I would like to see more advanced customization involving AJAX mixed in with multiple relationships, filters etc... For example, if I wanted to build an interactive UI that interacts with multiple Models and is relationship aware, loads selections based on previous form selections, etc... does that make sense?
Cesc
@francescjr_twitter
Hello everyone, I have a problem with this, the error is: "Class 'App\User' not found (View: C\Users...login.blade.php), i don't know what i have to do, i followed all the instructions. I'm desasperated. If someone can help me, i will appreciate it.
Wesley Smith
@DoDSoftware
@francescjr_twitter If you're like most people using laravel, you've probably put your user model in App\Models\User, or, if you're using laravel 8, I believe it puts it there by default now. If either is true, please update login.blade.php to look forr App\Models\User instead of App\User
@antony.peiris_gitlab Gotcha, yeah that makes sense Id like to see those too. Next time im working with something along those lines Ill certainly look at trying to make a tutorial out of it :)
Pedro Martins
@pxpm
Just an heads up, to properly configure your user model is inside the config file config/backpack/base.php and look for: user_model_fqn
after you change it to match your application you should clear config cache to make sure configs are reloaded php artisan config:clear
1 reply
Ayman Abi Aoun
@lambasoft
Hello, anyone mind helping me resolve my issue: Laravel-Backpack/PermissionManager#254
Wesley Smith
@DoDSoftware
@lambasoft answered via your issue
Ghost
@ghost~5f75684ed73408ce4ff060fc
We had a couple of websites written for us by a software house, they have uses backpack for the administrator side of the application, anyway they have split ties with us and now supplied us the application so we may host it ourselves, here lies the problem, they have not supplied us with a licence, so when we try to access the administration side we are presented with a 404 page and a message about using unlicensed software, my question is should they have supplied a license after all we have paid for this development, the reason I ask this is, that they are saying we need to get a license, so not sure what I need to do on this, looking for help
Pedro Martins
@pxpm
@simon_arnold_twitter if they should have give you the licence code based on what you paid/asked from that company is something we can't argue on, it's your business and theirs so we backpack can't do much about it. The 404 page I don't think it's related with the unlicensed software. If you are interested you can check out https://backpackforlaravel.com/pricing to see what licensing fits you better. If you need further help feel free to post here or in stackoverflow, we have an active community very willing to help others.
paperscissors
@paperscissors
I guess this is a related question --- is there not an upgrade pricing from a 3 to 4 license?
paperscissors
@paperscissors
A little rough if you're coming from an unlimited license
Pedro Martins
@pxpm
@paperscissors the best person to ask that would be Cristian himself. Shout him an email: hello@tabacitu.ro
jorgepires
@jorgepires
Hi, anyone aware of a public project using backpack for ticket handling system?
Wesley Smith
@DoDSoftware
@jorgepires Not offhand, though for what its worth, if I was going to set up a ticket handling system, I'd probably use software specifically designed for it like Atlassian's Jira Service Desk.
jorgepires
@jorgepires
Hi @DelightedD0D , I use JIRA in my company but thinking on creating a more simple one for the customer support, and if some open project was already on the wild would contribute to it as well
Wesley Smith
@DoDSoftware
@jorgepires I see. For what it's worth, I love Backpack and you could potentially build a ticketing system with it though I'm not sure I'd use it for that purpose myself. If you find something or make it yourself we'd definitely like to see what you come up with :)
wejdan m
@wejdan.alohaideb_gitlab
Hi guys, I have been looking for a way to display column in show blade only if one column has certain value but i could not find results can anyone help?
@jorgepires there is already a JIRA service desk that you can use it for clients and combine it with your company JIRA
Guillermo Baron
@guillorrr

If you have a Scope on that model, you can add the scope with $this->crud->addScope(’scopeName’, $param)

Hi! I try to use this help in setupListOperation but not working.

Guillermo Baron
@guillorrr

This is my scope


public function scopeTeamDescendants($query, $user_id)
{
    return $query->where('id', '=', $user_id)
                    ->with('descendants')
                    ->first()
                    ->descendants;
}

This is my crudcrontoller

// This working ok (24 results)
dd(User::TeamDescendants(2020));

// This only get 1 result
CRUD::addClause('TeamDescendants', 2020);

// This return: CrudPanel::addScope does not exist.
$this->crud->addScope('TeamDescendants', 2020)

// This return: Method Illuminate\\Support\\Collection::getCountForPagination does not exist.
$this->crud->query = $this->crud->query->where('id', '=', $user_id)
                    ->with('descendants')
                    ->first()
                    ->descendants;

I use this Laravel Eloquent extension: https://github.com/staudenmeir/laravel-adjacency-list for relathionships

or anyOne who can answer this above link
HmInt0101
@HmInt0101
Can i use all the clauses in addClause(); like whereBetween etc
Wesley Smith
@DoDSoftware
@HmInt0101 Please see my comment on your question
Wesley Smith
@DoDSoftware
@guillorrr $this->crud->addClause('teamDescendants, 2020); Is correct, however, that teamDescendants scope itself seems a bit off. Could you please create a question on stackoverflow.com including the code you show here, the related model classes, and an explanation of what exactly the teamDescendants should do, then tag it with backpack-for-laravel and post the link here? Im sure with that information we can help get you sorted :)
@HmInt0101 Indeed, the addClause method calls return call_user_func_array([$this->query, $function], array_slice(func_get_args(), 1)); meaning you can use it to add any query method supported by laravel and whatever params you send with it will be forwarded correctly to that method, including whereBetween and using closures and such
Dino Cisterna
@DinnoCisterna
Hi
How are they? I have a problem creating a repeatable field based on a relation.
Wesley Smith
@DoDSoftware
Hi @DinnoCisterna Could you please create a question on stackoverflow.com including your CRUD Controller code and the related model classes, then tag it with backpack-for-laravel and post the link here? Im sure with that information we can help get you sorted :)
HmInt0101
@HmInt0101
how do i set checkbox true in laravel-backpack
HmInt0101
@HmInt0101
it is possible to get the last-session OR user-agent in laravel-backpack
ShekharKokate
@ShekharKokate
Hi Everyone,
I have installed elfinder and connected with amazon s3. But, it is taking too much time to load all the images because it is near about 1000 images are uploaded.
Is there any solution to increase the speed so that it will take less time.
Pedro Martins
@pxpm
@HmInt0101 that's PHP. You can use whatever you want from PHP in Backpack. $_SERVER['HTTP_USER_AGENT']
HmInt0101
@HmInt0101
i was thinking that laravel-backpack uses some method for it
HmInt0101
@HmInt0101
In my update user form there is a email field, while updating other field it gives me error "Email is already in use". with laravel-backpack and I am using the UpdateUserCrudRequest class for this
plz need help
Pedro Martins
@pxpm
@HmInt0101 It works as expected in my demo: https://recordit.co/RPb1d0dAwE
HmInt0101
@HmInt0101
@pxpm can you share the code
Pedro Martins
@pxpm
HmInt0101
@HmInt0101
@pxpm my table's primary key not id, Iam using UUID
Pedro Martins
@pxpm
you setup protected $primary = "uuid" in your model ?