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

How to use Backpack for Laravel on existing project?

I'm building a small app with Laravel and I just discovered Backpack that looks very nice ! I downloaded it (I have a license), but I really don't know how to use it with my existing files (so far 3 controllers, 3 models and a few blade files) Maybe…
user13652637
2
votes
2 answers

select2 field that depends on another field

I want to implement the code show in this tutorial: https://backpackforlaravel.com/docs/4.1/crud-how-to#add-a-select2-field-that-depends-on-another-field However, this line returns null value: $form = collect($request->input('form'))->pluck('value',…
vreedom18
  • 341
  • 2
  • 13
2
votes
1 answer

laravel - backpack - addFilter custom query

How to create function to show result in list? - Backpack This code return error {message: "Call to a member function count() on array", exception: "Error",…} exception: "Error" file:…
RosheD
  • 33
  • 6
2
votes
1 answer

Laravel backpack admin fetching over https rather than http

I have a laravel 7 app running in a dokku container that is secured with letsencrypt. My RESTful/graph endpoints are correctly served securely but my admin backend is trying to load insecure assets over http. I've set the following environment…
waffl
  • 5,179
  • 10
  • 73
  • 123
2
votes
1 answer

how to use backpack clone feature for unique field form

Backpack Crud have clone function. But it isn't work when our table has unique field column. Backpack clone Documentation When table has unique column how to clone it? public function clone($id) { $this->crud->hasAccessOrFail('clone'); …
Senthurkumaran
  • 1,738
  • 2
  • 19
  • 29
2
votes
1 answer

Using Laravel Backpack upload a file (type => upload) is not visible in editing

I upload a file using laravel backpack type => 'upload' view. It uploads successfully. But in the editing, it is not visible input. What is wrong if anyone knows to help me. My Controller $this->crud->addField([ 'label' => "Document", …
Senthurkumaran
  • 1,738
  • 2
  • 19
  • 29
2
votes
1 answer

Override RegisterController on Laravel Backpack

After seeing the vendor, LoginController and RegisterController controls the Login and Register in laravel backpack. So by default, in config.base.setup_auth_routes is true, I would like to know how to override these controller. What I've tried so…
rochiey
  • 29
  • 7
2
votes
2 answers

Trying to understand Laravel Backpack Spatie permissions

I have installed backpack 4 and Spatie. https://github.com/spatie/laravel-permission I have created 2 roles: Admin and Users in my back end admin panel(the CRUD that comes with Backpack). I have then added 2 permissions: 1 called "read admin link" 1…
Benny
  • 430
  • 6
  • 17
2
votes
2 answers

Relationships in Laravel Backpack - Not sure I understand

I installed backpack on the latest version of Laravel 6. Upon running this command as a test: php artisan make:migration:schema create_posts_table --schema="user_id:unsignedInteger:foreign, name:string, slug:string, description:text,…
Benny
  • 430
  • 6
  • 17
2
votes
1 answer

Backpack V4 modifying field before store

In 3.6 version of backpack I can change an attribute value before storing it. I have this code If ($request->description == "") { $request->description="User has not entered any description"; } $redirect_location =…
Kezern
  • 473
  • 5
  • 19
2
votes
1 answer

How to override an action method in backpack-for-laravel without losing its functionality

I want to override an action method in laravel backpack without losing its functionality. I am trying this use Backpack\CRUD\app\Http\Controllers\Operations\ListOperation\ {index as traitIndex }; use…
Eday Gonzalez
  • 310
  • 1
  • 2
  • 13
2
votes
0 answers

Can't click on form fields on edit / create of a single controller in laravel on mobile

I have a web application that is using Laravel with the Backpack addon. Recently i discovered this problem where some fields in the create / edit route in a controller are not selectable in mobile (as if they were readonly). This only happens in…
Yeeter
  • 109
  • 1
  • 13
2
votes
1 answer

Exposing the API end-points for CRUD Operations in Laravel Backpack

How can I expose api-end points for the CRUD controllers used for backpack so that I can reuse the operations in the controllers without having to code new ones, while adding necessary api features like JSON, authentication modes
Stephen Senkomago Musoke
  • 3,528
  • 2
  • 29
  • 27
2
votes
1 answer

How to override saveAction backpack laravel admin panel

I am developing a custom behavior in backpack-for-laravel V4 to upload files then user will be forwarded to a screen to match the content of file contents. There will be two steps in this behavior so I need to change save_action first to upload and…
Ya Basha
  • 1,902
  • 6
  • 30
  • 54
2
votes
2 answers

addClause always returns empty collection

Edit2: The problem is solved now thanks to @tabacitu. Thanks to everyone who tried to help! Please refer to this github thread for further information while I update the question: https://github.com/Laravel-Backpack/CRUD/issues/2049 Edit: I have…
Adrenaxus
  • 1,593
  • 2
  • 18
  • 34