Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 15 20:25
    anandphulwani commented #3098
  • Jan 15 19:30
    yabbou commented #95
  • Jan 15 19:30
    yabbou commented #95
  • Jan 15 14:03
    tabacitu labeled #95
  • Jan 15 14:03
    tabacitu commented #95
  • Jan 15 13:59
    tabacitu commented #3460
  • Jan 15 13:53
    tabacitu commented #3359
  • Jan 15 13:51

    tabacitu on master

    add consistent field null prope… Merge branch 'master' into allo… remove select multiple and 6 more (compare)

  • Jan 15 13:51

    tabacitu on allows-null-consistency

    (compare)

  • Jan 15 13:51
    tabacitu closed #3334
  • Jan 15 13:48

    release-drafter[bot] on 3.0.6

    (compare)

  • Jan 15 13:48

    tabacitu on master

    Update security email address (compare)

  • Jan 15 13:46
    welcome[bot] commented #106
  • Jan 15 13:46

    tabacitu on master

    bugfix select on change, revert… Merge pull request #106 from ma… (compare)

  • Jan 15 13:46
    tabacitu closed #106
  • Jan 15 13:44

    tabacitu on add-how-to-overwrite

    (compare)

  • Jan 15 13:44
    welcome[bot] commented #264
  • Jan 15 13:44

    tabacitu on master

    Update README.md Update README.md Co-authored-b… Update README.md Co-authored-b… and 2 more (compare)

  • Jan 15 13:44
    tabacitu closed #264
  • Jan 15 13:40

    dependabot-preview[bot] on composer

    (compare)

osieman1
@osieman1
@pxpm Thanks..
osieman1
@osieman1
Hello... I have created a widget (not sure if it should be a widget or not), called by dashboard. It takes up the whole screen and shows a table of data for a month. It has a button for next month. I store the present month in a hidden filed. How do I get it to display next months data if the button is clicked.
Do I call the dashboard from javascript or can I just call the widget and what is the code to do the call .
@pxpm
Константин Казначеев
@spam2_gitlab
Hi all! Why there might be problems with displaying saved data in fields when using pivot table?
osieman1
@osieman1

Hello... I have created a widget (not sure if it should be a widget or not), called by dashboard. It takes up the whole screen and shows a table of data for a month. It has a button for next month. I store the present month in a hidden filed. How do I get it to display next months data if the button is clicked.
Do I call the dashboard from javascript or can I just call the widget and what is the code to do the call .

Okay... I did it by passing a url parameter to the widget via calling the dashboard with window.location = "/admin/dashboard?month="+monthnumber;
I think it is better to use a controller and a blade view.. so I will look into that.

Pedro Martins
@pxpm
@spam2_gitlab the issues related with pivot tables are beeing addressed here: Laravel-Backpack/CRUD#3410
You can use the code in that PR while it's not merged, It's pretty much working.
@osieman1 it all depends how you'd setup your widget. For that I would setup the widget in page and have functions to initialize and write the widget to the page. When some button is clicked (change month for example), it would catch the event, call the function to initialize with month parameter and display the updated results.
osieman1
@osieman1
Thanks @pxpm ... I finally got someting working i'm happy with... It (dashboard) does not have a controller though. I will see where I get with a dedicated controller with functions.
Pedro Martins
@pxpm
on how to overwrite it with your own
it's not related to dashboard, but the bind() principle is the same, that's Laravel functionality, not backpack specific
osieman1
@osieman1
Thanks again... I will look into all that. I realise I have relied too much on backpack because it has done everthing for me. I need to better my basic laravel knowledge.
Pedro Martins
@pxpm
it's a good way of learning by practicing, some people like to read some docs and pratice along, others like reading a full book or smth. yeah, just keep learning something everyday, in sometime you will realize what you were doing wrong before, and sometimes laugh at it! well, basics is basics, you should learn them because it will make your life easier :)
Fatih Toprak
@fatihtoprak
Hello can't install packages for https://myray.app/ with backpack
any idea ? :)
Joey de Vries
@xJoeyv
image.png
When I try to login into Backpack I get this on Prod:
What could be the problem cause the csrf is init and the session domain is setup
Pathaksa Tongpitak
@pathaksa
how can I get the assets that is used in https://backstrap.net/ ?

What could be the problem cause the csrf is init and the session domain is setup

check if the session_path is writable

Pedro Martins
@pxpm
@fatihtoprak what errors do you run into when adding the package ?
@xJoeyv if it only happens in production it probably means some configuration issues in server/session drivers like @pathaksa suggested
@pathaksa those assets are in your public folder.
Pathaksa Tongpitak
@pathaksa
image.png
@pxpm I don't have the vendor folder
Pathaksa Tongpitak
@pathaksa
i think the scripts are bundled
Pedro Martins
@pxpm
inside packages you should have @digitalyhappy folder
Pathaksa Tongpitak
@pathaksa
image.png
it only contains CSS
Pedro Martins
@pxpm
sorry, js is bundled inside backpack\base\
osieman1
@osieman1
@pxpm I want to add a function to a backpack crudcontroller. The function is to have the code $sql = bookhdr::find($bookhdr); and will call a view that uses backpack's $entry.
the problem is that I do not know the name of the eloquent model pseudonym that backpack controller uses...
    public function printPDF($id)
    {
        $bookhdr =  bookhdr::find($id);
        $pdf = PDF::loadView('bookhdr_show', compact(['bookhdr']));
        return $pdf->download('bookhdr.pdf');

    }
Pedro Martins
@pxpm
backpack views uses crud:: or backpack:: view namespaces depending on where the view is located vendor\backpack\crud\src\resources\views\ crud or base
osieman1
@osieman1
I get this error Method Backpack\CRUD\app\Library\CrudPanel\CrudPanel::find does not exist. from $bookhdr = crud::find($id);
Kiwisa
@Kiwisaofficiel_twitter
Hello , I'm trying to understand why my 4.1 backpack installation won't start
C:\xampp\htdocs\Test>composer require backpack/crud:"4.1.*"
./composer.json has been updated
Running composer update backpack/crud
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Package operations: 8 installs, 0 updates, 0 removals
  • Downloading backpack/crud (4.1.30)
    0/1 [>---------------------------] 0% - Downloading backpack/crud (4.1.30)
Pedro Martins
@pxpm
ahh sorry, no. To get crud model you should use $crud->model->find(....)
if you update composer recently, try clearing the cache with composer clear-cache
Kiwisa
@Kiwisaofficiel_twitter
@pxpm this is for me this message ?
osieman1
@osieman1
@Kiwisaofficiel_twitter .. yep, I think so.... its not mine
Pedro Martins
@pxpm
yes @Kiwisaofficiel_twitter sorry didn't mention
Kiwisa
@Kiwisaofficiel_twitter
@pxpm thank you
so now i have this

Failed to download backpack/crud from dist: curl error 28 while downloading https://codeload.github.com/Laravel-Backpack/CRUD/legacy.zip/62856b1f01fc3e05c80140fc22f85ea2aac8368c: Operation timed out after 300006 milliseconds with 26014104 bytes received
Now trying to download from source

  • Syncing backpack/crud (4.1.30) into cache
  • Installing composer/package-versions-deprecated (1.11.99.1): Extracting archive
  • Installing prologue/alerts (0.4.8): Extracting archive
  • Installing doctrine/event-manager (1.1.1): Extracting archive
  • Installing doctrine/cache (1.10.2): Extracting archive
  • Installing doctrine/dbal (2.12.1): Extracting archive
  • Installing creativeorange/gravatar (v1.0.20): Extracting archive
  • Installing backpack/crud (4.1.30): Cloning 62856b1f01 from cache
  • Installing backpack/generators (v3.1.5): Extracting archive
    Generating optimized autoload files
    composer/package-versions-deprecated: Generating version class...
    composer/package-versions-deprecated: ...done generating version class

    Illuminate\Foundation\ComposerScripts::postAutoloadDump
    @php artisan package:discover --ansi
    Discovered Package: backpack/crud
    Discovered Package: backpack/generators
    Discovered Package: creativeorange/gravatar
    Discovered Package: facade/ignition
    Discovered Package: fideloper/proxy
    Discovered Package: fruitcake/laravel-cors
    Discovered Package: laravel/sail
    Discovered Package: laravel/tinker
    Discovered Package: nesbot/carbon
    Discovered Package: nunomaduro/collision
    Discovered Package: prologue/alerts
    Package manifest generated successfully.
    77 packages you are using are looking for funding.
    Use the composer fund command to find out more!

that's ok?
Pedro Martins
@pxpm
you can check if everything is working with php artisan backpack:version
Joey de Vries
@xJoeyv
@pathaksa @pxpm I use database as session driver. This is my driver in session.php
'driver' => 'database',
Joey de Vries
@xJoeyv
Fixed it: I check my nginx configs and saw this on production add_header X-Frame-Options "SAMEORIGIN"; I commented that out and reloaded the server. That worked
Pedro Martins
@pxpm
thanks for sharing the solution! \o