Questions tagged [laravel-backpack]

Backpack for Laravel is a selection of Laravel packages designed to make building administrative panels easier. Use with the [laravel] and/or [php] tags

  • Backpack helps to build sections where your admins can manipulate entries ;CRUD Panels to perform most basic operations.
  • Backpack provides with a visual interface for the admin panel.

To know more about it visit backpack.

855 questions
53
votes
1 answer

Populating nested dropdowns using backpack for Laravel

Has anyone here ever created a nested dropdown within the backpack's cruds? I've got this crud controller which handles the 'Campaign' model - $this->crud->addField([ 'name' => 'industry_id', 'entity' => 'industry', 'type' =>…
Gonras Karols
  • 1,150
  • 10
  • 30
18
votes
4 answers

Add one to many in form - Backpack laravel

I'm using Backpack for Laravel to provide the backend area of my laravel website. I'm having the following tables in my database structure: This is to add sets to a match, and add matches to a tournament. These are my Models: Tournament…
nielsv
  • 6,540
  • 35
  • 111
  • 215
18
votes
1 answer

Driver [] is not supported. - Laravel 5.3

I'm using backpackforlaravel to set up the backend area of my website. I've added an image field in my ProjectCrudController: $this->crud->addField([ 'label' => "Project Image", 'name' => "image", 'type' => 'image', 'upload' =>…
nielsv
  • 6,540
  • 35
  • 111
  • 215
7
votes
4 answers

Override CRUD views

I would like to override the CRUD views of the Laravel Backpack CRUD package, because I want to make small changes to the layout. But obviously I don't want to change the CRUD package itself. Is there an elegant to do this?
Sybrand Hoeksma
  • 113
  • 1
  • 1
  • 3
6
votes
0 answers

Show multiple entities/forms on same page with Backpack\CRUD

We are evaluating Backpack for Laravel. One missing thing, a showstopper, that we can't find, is, how we can display multiple entities on the same page. Examples: - List of persons, i click one person (an action button), and then it routes to a…
cweilguny
  • 121
  • 1
  • 1
  • 5
5
votes
1 answer

I get BadMethodCallException Call to undefined method App\Models\User::identifiableAttribute()

I get this error after clicking 'New Post' button the frontend of the app: Posts view Line from my log file: [2020-09-27 14:41:03] local.ERROR: Call to undefined method App\Models\User::identifiableAttribute() {"exception":"[object]…
5
votes
1 answer

Laravel Backpack How to create new page without CRUD

Sorry Guy I'm new with Laravel Backpack 4.3 need your expertise. I wanna create a simple page without CRUD is that possible on Laravel Backpack, if yes Which file I need to work on?
Gino
  • 51
  • 1
  • 5
5
votes
1 answer

Laravel Backpack - Upload multiple in PageTemplate

I'm trying to upload multiple images on page edit form. In my PageTemplates.php I have: $this->crud->addField([ 'name' => 'images', 'label' => 'Fotos', 'type' => 'upload_multiple', 'upload' => true, 'disk' => 'uploads', …
nielsv
  • 6,540
  • 35
  • 111
  • 215
4
votes
2 answers

Middleware order issue in Laravel: CheckPasswordStatus executed before auth middleware resulting in 'Call to a member function can() on null' error

I'm facing an issue in Laravel related to the middleware after I updated to from Laravel 7 to 9 and Backpack from 4 to 5. I should get redirected to the login page (example.com/admin/login) when I try to access a route I'm not allowed to without…
LBR
  • 51
  • 4
4
votes
1 answer

How to build and package themes for Laravel Backpack?

I'm developing two Laravel+Backpack applications at the same time. I'm styling and changing the look and feel of Backpack a lot, not just on the CSS level, but also inside individual Blade templates. Most of the changes apply to both applications…
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
4
votes
3 answers

how to use DD() method in Laravel projects?

I know that for some it might be stupid or funny question (but I am newbie) but I need to find know how to properly use DD() method in laravel projects. For example - I have got tasks to debug some code and functionality in my project (PHP laravel).…
Kar Smt
  • 47
  • 1
  • 1
  • 3
4
votes
1 answer

How to access backpack fields on custom (non-CRUD) page?

I've made a custom page in backpack admin panel. This page is non-CRUD (not related to any model). There are several forms on it, with date pickers, select inputs, etc. So I'am trying to find a way to use backpack fields to create these date pickers…
Mikhail
  • 65
  • 6
4
votes
2 answers

Adding fields to create request [Backpack for Laravel v4]

I need to set a key=>value into the request that's pushed into Backpack's store method; In v3 I had a working store method like so; public function store(StoreRequest $request) { $request->request->set('account_type',…
evanr
  • 4,396
  • 3
  • 20
  • 16
4
votes
0 answers

Editing after saving doesn't show selected input

I'm using the Backpack for Laravel CRUD features & currently having an issue with the select field type as to which after saving the form, once I go back to try and edit it isn't pre-defining my selected option? Here's my setup() code inside my…
Curtis
  • 2,646
  • 6
  • 29
  • 53
4
votes
0 answers

How can I have multiple CRUD entities inside the same page? [Backpack 4.0]

What I did Back when I was using Backpack 3.6, I've created a trait called RelatedCrud and set up everything in order to have more than one CRUD inside the same page. To better explain myself with an example, I had the CRUD page "Note", which…
Pat
  • 41
  • 1
  • 4
1
2 3
56 57