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
2 answers

Laravel Backpack Entering a New Time Field Starts Calendar at 1970

Created a Event CRUD object in Laravel Backpack. Everytime I add a new Event, the calendar that helps set the time for the event is set to 1/1/1970 12:00 AM. How would I change that field to be defaulted to current day 12:00 AM by default?
Sakamoto Kazuma
  • 2,573
  • 7
  • 34
  • 75
2
votes
2 answers

Using radiobox in Laravel Backpack/Setting

Hi I am trying to use radio in Backpack for Laravel. I have the following, but it does not show any radiobox. What am I doing wrong here? {"name":"value","label":"Value", "title":"Google Auth", "type":"radio","options":{"0":"Off","1":"On"}}
shin
  • 31,901
  • 69
  • 184
  • 271
2
votes
1 answer

Extending Backpack Admin ArticleCrudController

I am trying to extend Backpack\NewsCRUD\app\Http\Controllers\Admin\ArticleCrudController so that I can add a new field. But it does not show a new field. What am I doing wrong here? namespace App\Http\Controllers\Admin; use…
shin
  • 31,901
  • 69
  • 184
  • 271
2
votes
1 answer

n-n relationships for multiple content types

I'm working on a project based on Laravel 5.3 and Backpack CRUD. My project has about 8 different content types (news, page, portfolio, events, team, video, gallery, jobs). I need to be able to add tags to every content type (n-n), and every content…
Sybrand Hoeksma
  • 113
  • 1
  • 1
  • 3
2
votes
1 answer

laravel backpack - creating related models on the fly

is it possible to have a onepage-form for editing or creating a entry and its related (1 to n) entrys? For example: I have a customer model, every customer can have unlimited addresses. I could now have a CustomerCrudController and a…
2
votes
3 answers

How to get the value of one of the attributes used by Backpack?

For example, I need to take the "id" value and use it to do a search for my model Article, but this value (id) which also appears in the URL: "/article/4/edit" and in the "setColumns" parameters, I don't have any idea how to get it. I need your…
Cinzia Nicoletti
  • 169
  • 1
  • 14
1
vote
2 answers

Laravel 419 , page expired

After installing backpack v6, getting 419 | page expired error, I can't go to any other page with getting the page expired error, I tried to put the on the blank.blade.php enter image description here After creating the models and installing…
Simangae
  • 11
  • 1
1
vote
1 answer

Backpack 5 for Laravel saves files into temporary folder of the webserver

I am using free version of Backpack 5 for Laravel as my admin panel. Also, I am using Laravel 10.13 and PHP 8.2.6. I have been trying to create a feature to add pictures for my blog posts however whenever I save the file it shows in my database…
1
vote
1 answer

Laravel Backpack issue adding route for CRUD controller

For my project I'm using a Laravel backend with Backpack installed. Currently Backpack has generated a CRUD controller for my Role model but I want to add a field. Since this CRUD controller isn't in my project I can't edit this controller. So I…
Ivan
  • 23
  • 3
1
vote
3 answers

Is there a limit to validations in a Backpack controller?

Laravel has powerful and elegant validation features like unique/ignore/where. And Backpack's CRUD controllers allow for invoking Laravel validation from within the controller. It's clear to me how to invoke simple validation rules like required…
1
vote
1 answer

artisan backpack:build fails with BadMethodCallException

In a fresh Backpack installation, when I run php artisan backpack:build it fails as follows: BadMethodCallException …
1
vote
1 answer

How can I override the store function in backpack-for-laravel v5?

I've updated my app from backpack-for-laravel v4.1 to v5, but now I'm having issues with overriding the store function. I followed the upgrade guide and step 15: https://backpackforlaravel.com/docs/5.x/upgrade-guide#step-15 but unfortunately, my…
chrisM
  • 37
  • 5
1
vote
1 answer

Make a select2_multiple sortable

How do we make a select2_multiple sortable? I have a users table and a badges table. Naturally, I want to have a user_badge pivot table which will keep track of all the badges a user has and also sort it based on the order that I define using the…
cross19xx
  • 3,170
  • 1
  • 25
  • 40
1
vote
1 answer

How to use temporary table in my model to list with backpack for laravel?

I need to make a report taking information from different tables that are not directly related to each other. I thought that in creating my model that points to a temporary table that I created before, to which I am going to insert the information…
Camus
  • 17
  • 4
1
vote
1 answer

How do I show a field based on the selection of another field

I have a form field, when I select a car, I want to get the type of car or the result of the model. $this->crud->addField([ 'name' => 'car_id', 'label' => 'Car', 'type' => 'select2_from_ajax', …
Dominion
  • 152
  • 2
  • 2
  • 13