#### Category : backpack-for-laravel

is there any way i can integrate Laravel backpack CRUDs with custom blade files? Do you have any tutorials or any forum that can help? Sourc..

I’m using Backpack to create an Admin Panel for my project. I have a SoldProduct model (basically a physical item that has been sold to a customer), a Shoe model and a Sweatshirt model. There is a polymorphic relationship between them in order to have a separate table for each one of them, avoiding the ..

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 ..

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 ..

When I click on column header, it orders the column (and changes the icon).It’s ok. Then I push SHIFT and click on another column header, it changes the icon, but doesn’t order the column. This should be multi column function, but doesn’t work. The same case is when I insert this code to setupListOperation method: ..

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 ..

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? ..

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 ..

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’, // ..

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’) ..

I’ve a parent model which can have n childs So I want to show delete button ONLY if it has not children (hasMany relationship must return 0 records). How can I show ‘delete’ link in each lines of a table (in the list operation), but ONLY if a condition is valid? Sourc..

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 ..

I am using Laravel Backpack for the admin area of a website. Now I am creating the home page structure and I cannot decide on an optimal way of organising it. The home page should contain multiple sections (like widgets): Slider banners Latest products Short "about us" section Special offers Other custom sections with image, ..

I’m trying to store an image using Backpack’s CRUD. The Model’s name is ProductModel, and in the SetupCreateOperation I have: CRUD::addField([ ‘name’ => ‘photo’, ‘label’ => ‘Foto’, ‘type’ => ‘image’ ]); I don’t know why, but when I try to upload an image, I get an error saying "String data, right truncated: 1406 Data too ..

I am looking at doc page: https://backpackforlaravel.com/docs/4.1/crud-filters The simple question is: where must I call $this->crud->filters() ? I tried to add at end of setupListOperation() in my controller, but I don’t see filters over my table For curiosity: i assigned esit of call to a var and dumped it, and it’s an empty collection. protected .. Read more I created a new Laravel project for both APIs and Admin. I first installed Sanctum for the API authentication and then I installed Backpack. After the Backpack installation, I hit the admin URL and attempted to log in but I got the 419 page expired error. It was the same for registration. This is not .. Read more I am trying to install Backpack 4.1 composer require backpack/crud:"4.1.*" php artisan backpack:install But the dashboard view and admin controller are not there. Any ideas why that might be? I have tried googling the issue but could not find anything. From what I can tell they are meant to be published on the install. Or .. 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’m new to laravel backpack so what did is created a CRUD of title and description. And everything in admin panel works fine, but now I need to get that data to another blade view file through a controller like in a vanilla laravel but I cant seem to find how to do it. Source: .. Read more I’ve implemented a laravel project which involves backpack admin, now I want to know is there any appropriate way to test its CRUD functionality (like the store, delete, etc actions)? It doesn’t matter what kind of test is needed (functional or unit test), I just want to test its functionality. Sourc.. 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 Im having a weird problem. Im using laravel backpack for an admin panel. There i use select2_from_ajax to list a values according to another field in create operation. It is showing up correctly as expected & i can select one too. But after selection when i click save & back it gives me an error .. 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: ..