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
2
votes
1 answer

Laravel Backpack - Undefined array key "relation_type"

Laravel v9.9.0, Backpack v5.0.14, Backpack Pro v1.0.13 I'm getting an error when I try to save changes in Laravel Backpack CRUD: Undefined array key "relation_type" Through trial and error, I've pinned the cause down to one of the fields defined in…
Solo Sam
  • 51
  • 1
  • 8
2
votes
1 answer

Is it possible to use inline_create with pivot fields with Laravel Backpack?

Is it possible to use Laravel Backpack relationship field type with both inline_create and pivot fields enabled? I'm trying to make this happen: I have 2 entities, Products and Productions, and both have a belongsToMany relation defined in the…
2
votes
0 answers

Trying to use LdapRecord with BackPack but without success

I am trying to add LDAP authentication to a BackPack-based application. I am following the same route as @realtebo here: How to use backpack-for-laravel with LdapRecord-Laravel? The modified User Model looks like this:
2
votes
0 answers

Laravel backpack: Customize a row styling on a table?

Currently, The Team looks something like this: protected function setupListOperation() { ... $this->crud->addColumn([ 'name' => 'name', 'label' => "Name", 'type' => 'name', 'wrapper' => [ 'style' =>…
Nish Dekardo
  • 329
  • 2
  • 11
2
votes
1 answer

Is there a reason I am getting this Backpack DevTools error?

I am getting the following error after running the backpack devtools install. php artisan backpack:devtools:install I'm unsure about the warning above. My env is set to local. Now the DevTools menu item appears and when I click it I get the…
Web PBL
  • 23
  • 2
2
votes
0 answers

Backpack Laravel on cPanel: Invalid backend configuration. Readable volumes not available

I upload my Laravel project to cPanel along with Backpack, but I have an issue with the Invalid backend configuration. Readable volumes not available. My folder is located at public folder [uploads] Any idea on how to resolve this. Thanks
2
votes
2 answers

Backpack laravel align chart widgets in a row

How to align two chart widgets in a row? $widgets['before_content'][] = [ 'type' => 'chart', 'controller' => \App\Http\Controllers\Admin\Charts\TotalViewsChartController::class, 'content' => [ 'header' => 'Total Views', …
Maha Waqar
  • 585
  • 1
  • 10
  • 24
2
votes
2 answers

How to make a scope with a raw SQL query in Laravel 7?

Problem I am trying to make a scope in my model with this SQL query: SELECT * FROM ro_container_events WHERE (container_id, location_timestamp, id) IN ( SELECT distinct container_id, MAX(location_timestamp) AS lts, MAX(id) AS rce_id FROM…
2
votes
4 answers

How to override Backpack's UserCrudController?

I am trying to override/extend Backpack's default UserCrudController in Laravel 8 so that I can replace the list and edit operations with my own. To do this I tried: php artisan backpack:crud User However, code from the new file in…
2
votes
1 answer

Laravel Backpack button that redirects to other Model's create view

So I have three models, Product, Sale and Code. Each Product belongs to a Code model (it's similar to a User) and each Sale has a field for the Code who is selling the Product and one for the Code who is buying it. In the Product's list view I want…
2
votes
1 answer

Disable field in the crud

I need to update a record, but I want to display some fields as disabled for editing. I don't want to let the user edit a certain field, but I want to display them
2
votes
1 answer

Backpack relation field only with user

I am trying to make a select from relation. I have the following relation in my Product model: public function category(){ return $this->belongsTo(Category::class); } In my CrudController I describe the field like that: [ …
Urudin
  • 286
  • 2
  • 14
2
votes
0 answers

Separate SMTP for each Event Crud in Laravel Backpack

I'm working on a laravel backpack project. I have created an Event CRUD and each event has its own admin and SMTP details. Admin can sent invites to users for that event. I have already set sendgrid SMTP in my '.env' file and created a notification…
Omer
  • 1,727
  • 5
  • 28
  • 47
2
votes
1 answer

Backpack with multi-tenancy

I am creating an ERP system with multi-tenant with different db and has sub-domain for tenants. I am using the stancl\tenancy for the multi tenant package. I have a main domain for creating and adding companies Normally, when I load users in my…
P7rck
  • 116
  • 1
  • 5
2
votes
0 answers

Data not posted for custom operation

I've got very big trouble with custom operations in Laravel backpack. The documentated setup is clear but lack a real exemple with a form. In my case I wanted to use the form engine to create a form for a relationship. First step I did this : public…