Questions tagged as 'laravel'

1
answer

How to Associate a Superclave in a Model in Laravel 5.6

I need to be able to create a Model in Laravel that allows the use of Superclaves to work with a table: <?php namespace app; use Illuminate\Database\Eloquent\Model; class Dpsector extends Model { protected $table='dpalmacen'...
asked by 06.11.2018 / 22:39
1
answer

How do I pass the value of an input :: file by ajax from the view to a controller

I have a script which sends the information of the form to the controller, but when using the value of the input file I get that the value of that field is null "message": "Call to a member function store () on null " <script>...
asked by 14.11.2018 / 16:59
1
answer

DataTables warning: table id = table - Ajax error. (Have you solved this?)

I really do not understand why this error occurs and if I load the data someone who can explain to me     
asked by 26.11.2018 / 04:04
0
answers

How to consume a web service in laravel first and then visualize it in canvas?

PROBLEM I am trying to consume a web service that returns a series of data to me, I want to visualize that data through canvas. What I intend is to make statistics with the consumed data and visualize it in a bar graph created with canvas....
asked by 02.11.2018 / 22:21
2
answers

Undefined variable in Laravel 5.7

partners I am having the following problem and I can not find the solution, I have a view with a form to register a user, which has the following dropdownlist <select class="form-control" name="department_id" id="department_id"> @foreach...
asked by 02.11.2018 / 20:00
0
answers

assign values to input from selected ID of a select2

I hope you can help me, I'm new to this. I need that when selecting an input from a select2, show me the cost and the unit of measurement of the selected input in their corresponding input, in this case the inputs "unidadI_P" and "costoI_P"....
asked by 08.11.2018 / 23:46
0
answers

Save array in BD with laravel 5.5

I have a create for the registration of users where there is a MULTIPLE SELECT to assign several entities to the user. And he throws an array for each option I frame. So I have the multiple select: <label for="entity_id"&g...
asked by 02.11.2018 / 16:34
0
answers

how to format html within a php map () function

I have the following function in a laravel driver public function show() { $organizaciones = Organizacion::with('estados')->selectRaw('distinct organizaciones.*'); return datatables() ->of($organizaciones)...
asked by 01.11.2018 / 06:10
0
answers

How can I validate a field with MongoDB database?

Hello, I need to validate with normal laravel methods $this->validate($request, [ $request['key'] => $valid->Validacion ]); $request['key'] is a variable that happened to you $valid->Validacion is...
asked by 01.11.2018 / 00:24
1
answer

Laravel- Trying to get property 'name' of non-object

I am developing a product catalog system with Administration Panel in Laravel 5.5. I've finished it and everything works, except that I can not filter my products. When I do the function: dd($products); to verify if it does filtering,...
asked by 01.11.2018 / 23:28