Skip to content
Advertisement

Tag: laravel-backpack

Update Laravel Database table with cURL Get Response

I am trying to execute a cURL GET request and use the response to update my table, but getting the following error: TypeError IlluminateDatabaseEloquentBuilder::create(): Argument #1 ($attributes) must be of type array, string given, called in /home/vagrant/code/bp/vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php on line 23 A similar GET request through Postman returns the following response structure: Controller: M3customCrudController.php Answer First – use Http facade, not

Laravel Backpack, Show Address (Json) in Column

I want to show the name field from address json (using algolia), how do i do that? I tried this: But can’t manage to work. Also, it always return error. In preview, i want to show full address too, but only got json return. Thanks in advance Answer Managed to work with Custom Fields. Controller: Create a custom field at:

Advertisement