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

How to add fields which are not available in database?

I am not able to add field which is not available in my database I have tried adding $this->crud->addFields([ [ 'name' => 'coupon_type', 'label' => 'Coupon For', 'type' => 'select_from_array', …
Jainam Shah
  • 204
  • 1
  • 9
3
votes
2 answers

No notifications are returned

I am trying to get user's unread notifications though my controller. This works: public function notifications(){ return \App\User::find(auth()->user()->id)->unreadNotifications()->limit(5)->get(); } This doesn't, it returns an empty…
Librasulus
  • 138
  • 1
  • 9
3
votes
1 answer

Add Profile Information in MyAccountController [backpack-laravel]

I thought about adding a page, to change the profile of a user: name, surname, etc. Bug report File: MyAccountController.php function: public function postAccountProfileForm(UpdateRequest $request) the FormRequest, returns empty What I…
xdasty
  • 31
  • 5
3
votes
1 answer

How to order custom attribute in Datatable?

Say my User model's balance attribute from getBalanceAttribute() returns the sum of amount from user's Transaction model, how can this be orderable in the Datatable? User.php public function transactions() { return…
doncadavona
  • 7,162
  • 9
  • 41
  • 54
3
votes
3 answers

Laravel Backpack - getting current record from crud controller

In my crud controller I am trying to get the name of the person who is currently being edited. so http://192.168.10.10/admin/people/93/edit In the people crud controller public function setup()…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
3
votes
1 answer

CRUD : Adding Multiple Child Records (1-n relationships) on related CRUD form?

Running: Laravel 5.3 with Laravel Backpack CRUD 3.1 I am running into situations where I have a Model that I would like to add multiple related (child) records too, using just one CRUD form. Some examples would include adding multiple files... but…
JFK
  • 33
  • 4
3
votes
1 answer

how to change title with data in database laravel backpack

im new at laravel backpack. Here i want to change the title in layout with my data in database this is the image i want change that 'Backpack' with name in database like: $user = DB::table('users')->where('users_id','=',…
san
  • 31
  • 7
3
votes
2 answers

Laravel 5.4 Backpack can't delete item, returns "403 Forbidden" error

I was working on an admin panel using backpack for Laravel. When I want to delete some item by hitting the delete button, I get a Not Deleted error - see screenshots. It looks like the 403 and 405 errors that can occur when the CRUD::resource() or…
Thomas Venturini
  • 3,500
  • 4
  • 34
  • 43
3
votes
1 answer

Call to a member function count() on array in "laravel backpack crud" after update from 3.1.54 to 3.2.3

I have build my admin panel with laravel backpack packages.Last night I had run composer update which updated my backpack-crud package from 3.1.54 to 3.2.3, before update everything works perfectly but now i am getting "Call to a member function…
HKumar
  • 1,535
  • 3
  • 13
  • 28
3
votes
1 answer

CRUD orderBy with relationship

I'm having difficulty ordering the CRUD rows by a related value. In my main case I want to order jobs by the weight of their associated status Job (table)->status_id ---> Status (table)->weight I've got belongsTo and hasMany relationships setup…
3
votes
2 answers

Hash password before saving with Laravel Backpacker

A simple question: how do I modify (hash) the request value before saving it with Laravel Backpacker CRUD admin? As far as i understand, it should be done somewhere before these methods are executed in the crud controller: public function…
Peon
  • 7,902
  • 7
  • 59
  • 100
3
votes
1 answer

What are the reordering columns on laravel-backpack?

In the official documentation, the following columns are mentioned : parent_id lft rgt depth I haven't found any explanation of their types in the documentation. Could someone help me and tell me what they are ? I also want to know if they are all…
Marc Brillault
  • 1,902
  • 4
  • 21
  • 41
3
votes
1 answer

Laravel-Backpack/Settings table field in settings

Is it possible to use the table settings? I was able to add a table field, but after pressing the Add Value and Trash nothing happens. Save button saves NULL in column value in database. field in settings table: { "name":"value", "label":"Value",…
neuroine
  • 174
  • 2
  • 19
3
votes
2 answers

Change number of rows shown in datatable in Backpack for Laravel

Is there another way to change how many rows are shown in the table other than overwriting the list.blade.php file?
shin
  • 31,901
  • 69
  • 184
  • 271
2
votes
2 answers

Many-To-Many Relationship in backpack 4.1 for laravel

I use laravel 8 and backpack 4.1 for laravel. I have to add in one column more then one comma-separated-values. I have one pivot table with 2 foreign keys. The user can see with foreign key the available objects. I have to put all available objects…
1 2
3
56 57