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

Fresh installation exit code 127

Just freshly created project with PhpStorm for composer for laravel. I filled DB info to .env and ran migrations now i followed tutorial, to get laravel-backpack running and it fails at second command: php artisan backpack:base:install It starts…
HyperX
  • 1,121
  • 2
  • 22
  • 42
2
votes
1 answer

Laravel Backpack custom create page with passed in value

so I'm trying to figure out how to do a custom create page in Laravel Backpack that would allow me to pass a value in through the URL (think create?folderId=1). What I'm trying to do is akin to this, however, my create page doesn't need to look any…
Johanna H
  • 49
  • 2
  • 4
2
votes
1 answer

How do I filter the populated form values on Backback?

$this->crud->addClause works perfectly for listing but not when adding content to the system. What's the correct way to add that functionality to the field types? Imagine that there are many users, each user has multiple projects and each project…
Tim
  • 699
  • 8
  • 27
2
votes
1 answer

Mutator doesn't fire for image upload

Working on a project in Backpack for Laravel that involves uploading images, videos, etc. Starting with a simple image upload, I have a mutator in my model as follows: public function setThumbnailAttribute($value) { $attribute_name =…
Johanna H
  • 49
  • 2
  • 4
2
votes
1 answer

Unable to remotely access Backpack CRUD Panel

I am currently working on a CRUD panel for a database using Backpack for Laravel. This database is stored on a server run off of an Amazon EC2 instance. While connected to the instance, I am able to access the CRUD Panel using the localhost address…
Michael R
  • 23
  • 3
2
votes
3 answers

Laravel Backpack - Set extra attributes before page save

In my PageTemplates.php I have a field like this: $this->crud->addField([ 'name' => 'adres', 'label' => 'Adres', 'type' => 'address', 'fake' => true, ]); Now I would like to save also the latitude and longitude of the address they…
nielsv
  • 6,540
  • 35
  • 111
  • 215
2
votes
1 answer

Orderby multiple columns

I'm using Backpack for Laravel, Crud module. How to use orderby() for multiple columns? example: $this->crud->orderBy('name','desc')->orderBy('year,'asc'); I have seen the src and the orderby accepts only one parameter. Any suggestion?
Wtime
  • 21
  • 1
  • 3
2
votes
3 answers

Laravel Backpack - Show specific attribute from relationship function

I have the registered Comment model which has a User reference, like this: public function user() { return $this->belongsTo('App\User'); } This function returns an instance of a User, and that's correct, but I don't know how to register the…
llanfair
  • 1,845
  • 4
  • 27
  • 43
2
votes
2 answers

laravel backpack user password

I made a crud for my users in backpack. When I create a user everything works fine but if I update I get an error for "Password" since if I dont want to update it I leave it blank and password cannot be null. How can I not add "password" to the…
Packy
  • 3,405
  • 9
  • 50
  • 87
2
votes
1 answer

backpack for laravel get last id

I'm using laravel's backpack CRUD and I have a pivot table called equipment_parameter where i'm trying to save the last id from the parent equipment table. how do i get the last equipment ID to save it in Equipment_parameter pivot table ? …
2
votes
2 answers

Laravel Backpack select2_multiple not Displaying Correctly

I'm working with Backpack for Laravel, and implemented a select2_multiple field. The field works correctly, though it doesn't display properly at all. It's defined as: $this->crud->addField([ // Select2Multiple = n-n relationship (with…
carbide20
  • 1,717
  • 6
  • 29
  • 52
2
votes
1 answer

Laravel backpack relationship doubts

I am using laravel backpack to build a backoffice administration and im stuck at this, that is maybe a very basic doubt. Im in a case where i have: Table Event: id - name - themeID - more fields... Table Theme: id - name So, a theme can have various…
2
votes
1 answer

/admin/dashboard not found in laravel backpack

I am facing a problem while working on Laravel backpack as after logging in my page is redirected to the dashboard but It says 404 Not found. So can any one please solve this problem, why this problem occurs as I did not changed much on the code..…
2
votes
1 answer

How to set custom favicon in Laravel BackPack admin panel?

Does Laravel BackPack have easy way to set custom favicon in admin panel ? I would appreciate any help)
Odin Thunder
  • 3,284
  • 2
  • 28
  • 47
2
votes
2 answers

Illegal offset type - Laravel 5.3 - ConnectionFactory.php - Every Model

First sorry for bad english, not native. I'v an Laravel 5.3 App running on XAMPP, windows 7 machine. Everything was working great, and i don't have made any impact changes on code, it just happened. Everytime my app trys to build the connection with…
Pedro X
  • 849
  • 5
  • 13