Questions tagged [laravel-backpack-5]
26 questions
0
votes
1 answer
InlineCreate Operation does not work for HasMany relationship in Laravel backpack 5
I can't use InlineCreate Operation for the case of HasMany relationship in laravel backpack 5.
I've a page for creating new item group which will allow to add multiple attributes and multiple attribute values for each corresponding…

Rakibul Islam
- 11
- 2
0
votes
0 answers
Previous Value not being retrieved
I created a default_manufacturer_id field to a table and am trying to show the options under $manufacturer_list in a drop down. The drop down populates fine, but the previous value of default_manufacturer_id is not shown up as selected by…

Sharat Hegde
- 51
- 1
- 2
0
votes
0 answers
call_user_func(): Argument #1 ($callback) must be a valid callback, array must have exactly two members. Backpack Laravel
I got this error after I add type checklist in setupCreateOperationFunction. I want a checklist input fields in my form to insert data in my database. But its shows error:
call_user_func(): Argument #1 ($callback) must be a valid callback, array…

Sanjaya Paudel
- 121
- 1
- 7
0
votes
1 answer
Display serialized column data in laravel backpack show view
I want to display serialized data from database in a laravel backpack show view. The data is stored like this: { father:'value', mother: 'value'.etc}
The goal is to unserialize it and display it in different input field...
The laravel backback…

Ela The Nerd
- 3
- 2
0
votes
3 answers
How to upload file in relationship hasOn<->belongsTo Laravel Backpack
Can be possible to store a file uploaded to a related table?
Scenario: I have a usres table in database and another one pictures. Users Model have the following function
public function picture()
{
return $this->hasOne(Picture::class);
…

sinaps1
- 57
- 9
0
votes
2 answers
Laravel 8 + backpack error on "php artisan backpack:crud-operation SendNotification"
I installed Laravel 8 with backpack 5.1 and I run php artisan backpack:crud-operation SendNotification I got error:
root@9139092f4397:/var/www/khm-hrms# php artisan backpack:crud-operation SendNotification
BadMethodCallException
Method…

devit chea
- 53
- 1
- 6
0
votes
1 answer
How to show field from linked model in crud for Laravel Backpack?
I have two model Users and Roles connected by a pivot table. I want to display a field from the role model in CrudUserController. For example
User model:
public function roles()
{
return $this->belongsToMany( Role::class, 'role_user', 'user_id',…

KordDEM
- 177
- 10
0
votes
1 answer
How to implement repeatable relationship inside another one in backpack for laravel admin panel?
Heello everyone!
I have a product crud controller in my project and I want to assign specifications and their values (pivot table of the products and the specifications tables), and also the specification groups (pivot table of the products and the…

Rouhollah Joveini
- 158
- 1
- 3
- 14
0
votes
1 answer
Laravel 9 backpack 5.x laravel-permission how to configure CheckIfAdmin.php so users can't access backpack admin front-end
I'm new to Laravel and all that, and currently working on a little project. The task is to separate admins and users. So I want, just my admins, to access example.com/admin/dashboard. I read through some docs and came across this:
"2) Middleware to…

Birb
- 1
- 1
0
votes
1 answer
When installing Backpack PRO v5 I get a "failed to download backpack/pro" error from Composer
When installing Backpack for Laravel's PRO add-on, I have the token, I followed all the steps, but after composer require backpack/pro it errors:
Downloading backpack/pro (1.1.1)
Failed to download backpack/pro from dist: The…

tabacitu
- 6,047
- 1
- 23
- 37