Category : backpack-for-laravel

I’m trying to update my composers on my server. Locally, I managed to update my composers without any problems, but on my server when I run my command for update composer update this gives me the following error: Problem 1 – Root composer.json requires laravel/framework 5.5.32 -> satisfiable by laravel/framework[v5.5.32]. – laracasts/generators dev-master requires illuminate/support ..

Read more

I have created a CRUD module with softdelete option, but now I need to add the restore option to the list table I’m using backpackforlaravel with laravel 8 for the admin side. from backpackforlaravel Docs: https://backpackforlaravel.com/docs I actived the softdelete: <?php namespace AppHttpControllersAdmin; use BackpackCRUDappHttpControllersCrudController; class ProductCrudController extends CrudController { use BackpackCRUDappHttpControllersOperationsDeleteOperation; } I found ..

Read more

I’m following the installation docs for Backpack 4.1 for Laravel. The backpack:install Artisan command adds front-end assets to the /public/packages directory of my project. Usually, front-end package managers (NPM, Yarn, Bower, etc.) recommend not to add the actual package contents to a project’s repository, and instead add a dependency lockfile that can be re-installed by ..

Read more

I am trying to install backpack into my existing laravel project, but the installation just stops at step 2 "Creating users table (using Laravel’s default migration)". It’s been stuck like that for several hours already. Any suggestions? I followed the instructions, maybe the problem is caused by some wrong configurations in my existing laravel project? ..

Read more

Is it possible to use Backpack’s Admin CRUDs also for the normal user (obviously with limited functionality)? For example, with the route website.com/admin I can access Backpack’s Admin panel, but what if I want to give the normal user the possibility to use the tools that Backpack offers (same views, same methods) but for example ..

Read more

For the backpack-demo, I would like to show the ID and Title together. For the search result no issue, selected at the select2 also no issue, the problem is after save, it will not display, it become blank. How can I set it? Like below backpack-demo/app/Http/Controllers/Admin/MonsterCrudController.php [ // select2_from_ajax: 1-n relationship ‘label’ => ‘Select2_from_ajax’, // ..

Read more

Current select2_from_ajax only pass the search q for search term. How can I pass multiple search info to the method? I need to pass the current record ID /admin/product/4. I need to sql filter by product_id 4 and keyword. How can I do that? CRUD::field(‘select2_from_ajax’) ->type(‘select2_from_ajax’) ->label("Article <small class=’font-light’>(select2_from_ajax for a 1-n relationship)</small>") ->entity(‘article’) ->attribute(‘title’) ..

Read more

I’m using backpack and laravel, to create a new crud I use: php artisan backpack:crud tag #use singular, not plural php artisan backpack:crud product_category #use singular, not plural When table name is one part it is okay it Create crud like TagRequest; however, for the later one it create Product_categoryRequest how could I config backpack ..

Read more

I am trying to install Backpack 4.1 into Laravel 8 I ran composer require backpack/crud:"4.1.* but I received the following error. Problem 1 – backpack/crud[4.1.22, …, 4.1.x-dev] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, …, 2.12.x-dev] but it conflicts with your root composer.json require (^3.0). – backpack/crud[4.1.0, …, 4.1.21] require laravel/framework ^7.0|^6.0 -> found laravel/framework[v6.0.0, …, ..

Read more

I am using backpacker for admin panel in my project. I m using revise-operation for tracking history of CRUD operations. The problem is that in revise blade foreign table history is not showing but it is getting updated in database. Table Structure – Company – id, name, address, etc. CompanyParameterValues – id, company_id, value, text, ..

Read more

I’m trying to make the "actions column" appear first but can’t seem to make it happen. Tried all the methods in the cheatsheet but nothing worked and regarding the actions column the only thing there is $this->crud->setActionsColumnPriority(10000); but that doesn’t solve my problem. Is there any function I’m missing that accomplishes this? Thank you. Source: ..

Read more

does anybody know or have a Code Example or a tutorial for laravel 8 and backpack 4.1 with custom operation "create" and "store" including validation? the build in operations "create" and "store" are already in use (and working), so i want to code my own. but i dont get it 🙁 like "bankaccountcreate" and "bankaccountstore" ..

Read more