Questions tagged [laravel-backpack-5]

26 questions
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
0 answers

How to use file upload type field within subfields type in Laravel backpack 5

I have a relation as follows: A Class has many ClassContents. The code at Class model as follows public function classContents(): HasMany { return $this->hasMany(ClassContent::class); } The code at ClassCrudController's setupCreateOperation as…
1
vote
0 answers

how to crud nested relationship enum field

I have a order and orderInfo models. I want to do crud for orderInfo.language field from orderCrudController. Language column is Enum. Order and orderinfo have one-to-one relationship. I tried below $orderlanguages = getOrderLanguages(); …
m yadav
  • 1,783
  • 2
  • 11
  • 13
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

Laravel 8 + backpack throws error on "php artisan backpack:crud User"

I installed a fresh install or laravel "^8.75" and backpack "^5.3" and when I run "php artisan backpack:crud User" I get this error: BadMethodCallException Method Illuminate\Support\Stringable::lcfirst does not exist. Does anyone know what the…
Eligijus
  • 634
  • 1
  • 6
  • 15
0
votes
3 answers

How to validate the pro image field in backpack for laravel?

I have the mutator as the example in https://backpackforlaravel.com/docs/5.x/crud-fields#image-pro But I had trouble including the validation rules. I tried with 'photo' => 'nullable|base64image|base64mimes:jpg|base64max:2048', And it works when I…
Camus
  • 17
  • 4
0
votes
2 answers

Laravel Backpack modify default button on list operation

I am using Latest version of laravel-backpack (V5.X). I list operation i have very small requirement. just want to add a query string dynamically to get it on create page. i have tried many buttons api but didn't worked. Below is the code snippet.…
Ravi Roshan
  • 570
  • 3
  • 14
0
votes
0 answers

Laravel backpack pro relationship field: add the same child twice in the same parent cant be limited

Is there any way on Laravel backpack in relationship Pro field to not allow having the same instance twice as a children in a belongsToMany relationship. example here I can add the same POI twice. I tried to look on the doc and check the field…
0
votes
0 answers

I cannot re install backpack/pro for Laravel. Error github.com/Laravel-Backpack/PRO.git not found

when I run composer update ... Failed to execute git clone --mirror -- https://ghp...VWs:x-oauth-basic@github.com/Laravel-Backpac k/PRO.git "C:/Users/Andre NENY/AppData/Local/Composer/vcs/git-github.com-Laravel-Backpack-PRO.git/ " Cloning into bare…
André
  • 1
  • 1
0
votes
1 answer

Laravel 8 - BackPack 5.6: redirect to custom URL after login (no /admin/dasboard)

I'm working with Laravel 8 and BackPack 5.6. I setup "setup_dashboard_routes" as false, and now I get 404 after login. The thing is, I would like to redirect to a custom URL. Documentation says "you then need to overwrite the login route on your…
0
votes
1 answer

BackPack for Laravel and number in editable columns. Localization in Czech repuplic. We use a comma instead of a decimal point

I managed to talk Backpack into replacing the decimal point with a comma: config\backpack\base.php 'number_format' => [ // 'decimals' => 2, 'decimal_separator' => ',', 'thousands_separator'=> ' ', ], But…
0
votes
0 answers

Accessors not working on Backpack v5 select2 field

Working on a Invoice Generator admin panel for myself and i stumbled on another problem with the accessor. I have found and tried various tutorials for Laravel 8 and Laravel 9, but they all seem to go to the same result. A company can have multiple…
0
votes
2 answers

Filter by user's company

In the application i'm developing now using Laravel 9 and Backpack for Laravel 5, i have the User model and an Company model with User having many Companies and Company belonging to one User. A user can add a company to the database and then create…
0
votes
1 answer

Laravel Backpack - Customize Export filename

I have installed laravel backpack on my local. I am trying to modify the filename of exported file with this format TableName _YYYY-MM-DD HH:MM:SS. But can't find the option to do that in backpack. Here's what I add for adding the export button in…
1
2