Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 11:54
    tabacitu commented #2283
  • 11:34
    tabacitu edited #2283
  • 10:57
    tabacitu commented #591
  • 10:42
    tabacitu edited #2050
  • 10:42
    tabacitu edited #2050
  • 10:38
    tabacitu edited #2050
  • 09:53
    tabacitu commented #2175
  • 09:52
    tabacitu commented #2175
  • 09:51
    tabacitu commented #2175
  • 09:10
    ziming commented #2266
  • 09:09
    ziming commented #2266
  • 08:21
    tabacitu commented #2280
  • 08:20
    tabacitu commented #2280
  • 07:34
    tabacitu commented #2105
  • 07:29
    tabacitu commented #89
  • 07:26
    tabacitu commented #2266
  • 05:48
    ziming commented #2266
  • Dec 06 22:58
    triage-new-issues[bot] labeled #39
  • Dec 06 22:58
    welcome[bot] commented #39
  • Dec 06 22:58
    jmichaelterenin opened #39
Pedro Martins
@pxpm
if you never want it in view but always in export just set exportOnlyField => true
Guelade Kevin
@kevinG73_gitlab
@pxpm possible to hide tfoot of datatble ?
Pedro Martins
@pxpm
I think you can achieve that with css. Hide the footer element.
Eday Alix Gonzalez M
@ingeday_twitter
@pxpm so, I understand that it's not possible.
CJ Fleck
@cj_f_gitlab
hi all, i'm struggling to ties some pieces together. basically i want to edit a related model object but i'm not sure if that's possible with the default setup or if i need custom fields.
basically i want to edit a field on a related model
i can load the model into a wysiwyg field, but i want to just load the model.attribute
is that possible?
Pedro Martins
@pxpm
Atm it's not available with default setup
there is some work done to make that available and i think it will not be long until that's added
CJ Fleck
@cj_f_gitlab
@pxpm thanks for the heads up
Rony Por
@ojcloveu
I used to buy " Unlimited Backpack CRUD 3.x Use" can i use it for version 4.x?
ziming
@ziming
No Rony, you can't. But contact @tabacitu and I'm sure he can work something out for you
Fulliton
@ArtyshkoAndrey
Help me! I have a problem. I need create polymorph relation. I have Task, User and Departemt. In the select field (responible) on create page of Task i want choose User or Department. How to do it?
soufiene-slimi
@soufiene-slimi
@kevinG73_gitlab look for previous key in the published language file.
patrickleogit
@patrickleogit
Hi, everyone! Quick question, is there a way to make the actions column the first column on the list page?
eletec
@eletec
Hi ! I try the demo today. Using authentification, defining roles and permission in the demo. It has no effect on menu interface and all users can do anythings ! is it normal ?
Pedro Martins
@pxpm
@eletec hello :)
i answered your other question on github
You are testing demo online or you downloaded a copy of it ?
You have to programatically give access to roles/permissions to do or not to do . What's built in backpack is the ability to, the developer should program that accordingly to their needs
Pedro Martins
@pxpm
@patrickleogit I think there is no built-in way to do it. What you can do is override the list.blade.php file and setup the column where you want it.
@if ( $crud->buttons()->where('stack', 'line')->count() )
                  <th data-orderable="false" data-priority="{{ $crud->getActionsColumnPriority() }}" data-visible-in-export="false">{{ trans('backpack::crud.actions') }}</th>
                @endif
@patrickleogit ofcourse you can create your own actions column with your buttons etc by creating a custom column an making it the first :) check here
patrickleogit
@patrickleogit
I tried overriding the list.blade.php and shifting that exact piece of code but it just swaps the labels, not the actual field (which is strange).
The custom actions column sounds like a good idea, though! :)
vikram parihar
@vikramparihar
hi
Joey de Vries
@xJoeyv
Hi, I installed NewsManager via Composer can I add extra fields to it?
drjekyll
@drjekyll
Hi folks. I'm just starting to play with Backpack 4 locally to try out the things that I think I'll need for my application. Right away I ran into what seems like a problem with the model_function field. When I try to use the example field and function as described in the documentation, I get Facade\Ignition\Exceptions\ViewException
View [fields.model_function] not found. (View: D:\laragon\www\ctdb\vendor\backpack\crud\src\resources\views\crud\inc\show_fields.blade.php) I've searched all the support places and don't find many references to the model_function field type. What am I missing?
Kevin Lim
@zzkevinlim
Is Laravel Backpack a coupled or a decoupled or headless CMS?
Or it can be all three, since it's Laravel.
Kevin Lim
@zzkevinlim
It looks like I can use whatever frontend framework with Backpack, given reactjs or vuejs, is that right?
patrickleogit
@patrickleogit
Hello! Another question I wanted to ask. I would like to allow the user to close the details modal (the one that appears when you press the three vertical points and that shows the remaining columns that do not fit inside the window) whenever they press the ESCAPE button. Where can I find the code that handles the modal's behaviour, exactly? (So that I can modify it)
Cristian Tabacitu
@tabacitu
@zzkevinlim if you were to put it in a bucket, I’d say it’s decoupled, not headless. You can install it in your Laravel project (coupled), or as a separate instace that manages the same db as your front-end (decoupled). You could make it headless by creating your own admin interface that speaks to the Backpack CRUDs, but why would you? Backpack saves a lot of time specifically because it provides an easy-to-build admin interface. So while it could be used as headless, it doesn’t really make economic sense to use it that way.
@patrickleogit I agree - ESC should close the modal. Please open an issue on CRUD’s Github, and we’ll settle it. If you can provide a PR too, that would be great - it will definitely make the process faster. I believe the modal gets triggered in inc/datatables_logic.blade.php, more specifically these lines.
Kevin Lim
@zzkevinlim
Thanks, it can be decoupled, however the developer will have to write the RESTful API him/herself.
patrickleogit
@patrickleogit
image.png
Thank you for your answer, @tabacitu! I have been trying to modify that exact part of the code in order to make it work but I can't seem to be able to do it. I'm using "keyboard: true", but I'm beginning to think that's not what I need
Making Digital
@t-prod
Hi I would like to know which files I can update to do an inline edit mode on a listing ? I would like to click to edit a column and add a property on a field 'inline' => []
Like this
'inline' =>
[
'type'=> 'text', // Could be select or textarea
'function' => function($entry) { // Filter before send to Ajax Request
return strtoupper($entry->the_field);
}
]
Making Digital
@t-prod
What do you think possible ? or maybe add a javascript without touching field properties
Making Digital
@t-prod
Any ideas ?
Santiago Mengual
@entretic_twitter

Hello, I'm trying to insert the "user_id" with Backpack 4 using the function "store" but I can not get the value (if it works with an echo), always returns error:

SQLSTATE[HY000]: General error: 1364 Field 'user_id' doesn't have a default value

$request->request->set('user_id',backpack_user()->id);
$request = $this->traitStore();
$return $request;

Any ideas? thanks in advance!

not even with: $request->request->set('user_id',\Auth::user()->id);
Kevin Lim
@zzkevinlim
@entretic_twitter What's the field type of user_id?
Santiago Mengual
@entretic_twitter
It is a integrar
Integer, sorry @zzkevinlim
Kevin Lim
@zzkevinlim
@entretic_twitter try making it unsignedBigIncrements
koufothimios
@koufothimios
Hi all, I am new to Backpack and my goal is to use it for my own cms. I have implemented slugs and translation from the documentation, but I am wondering is there a built in way to have unique slugs per language? Because in my case when i create a tag for example, all the languages share the same slug. Lastly if I want to implement a slug lookup logic, so that when I have a website and a user tries to access a slug I can query the slug lookup table to determine the type of content, do I need to do it myself or does backpack offer something? Thanks in advance!