Questions tagged as 'laravel'

3
answers

Error in laravel when doing post Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message

I'm doing a simple CRUD in laravel 5.5 along with laravel colective but simply do not send me the post in fact or acknowledge the request: There are my routes Route::get('/admin/products/{id}/edit', 'ProductController@edit')->name('Edit...
asked by 27.03.2018 / 05:27
2
answers

add id in Form :: text in laravel

in the inputs normally lets add an id="datum1", but if I'm occupying laravel I do it this way but it does not recognize me, what form is added in laravel since I need the input id for a script {!! Form::text('country_destino',null,['class'=>...
asked by 01.11.2017 / 05:51
0
answers

Illegal string offset in laravel [closed]

I have this error:    ErrorException in PuntuacionesCtrl.php line 70:   Illegal string offset 'activity_id' and I do not know how to solve it, this is my code, the first line is 70 where I get the error: $actividad_id = $request->...
asked by 19.09.2017 / 23:09
1
answer

Laravel 5.4 MySQL 5.6.35 - The famous # 1215 - Can not add foreign key constraint

Creating a migration in Laravel 5.4 with MySQL 5.6 I can add an external reference perfectly if it is on the Id of another table, but I can not add it on a string index. This works well on the Id field CREATE TABLE 'stock' ( 'id' int(10...
asked by 04.09.2017 / 19:16
1
answer

Laravel Form, Select from a Foreign Key

Table Products:    Primary Key- > product_code Movements Table:    Primary Key- > code_movement / Foreign Key- > product_code These would be the two tables to relate, and I use the Laravel collective I'm supposed...
asked by 07.09.2017 / 09:02
0
answers

Record and save video with JavaScript

Hi, I'm working on a project in laravel 5.6, I want to activate the camera of the device and record a video of a few seconds, and save it on the server, for now I have this that activates the camera, I do not know what else to do to record and s...
asked by 05.09.2018 / 00:22
3
answers

Relationship tables laravel

Good morning I have 2 tables clients and companies, in the second table I am trying to create the relationship but I get an error with the foreign key.    Illuminate \ Database \ QueryException: SQLSTATE [HY000]: General error:   1005 Can...
asked by 03.01.2019 / 03:09
1
answer

"Route [demanda.estado.update] not defined" but exists in the resource controller, Laravel 5.4

StateController public function edit($id) { $estado=Estado::findOrFail($id); return view("demandas.estado.edit",["estado"=>Estado::findOrFail($id)]); } public function update(EstadoFormRequest $...
asked by 28.09.2017 / 15:48
1
answer

Set default values for route parameters in laravel

I am trying to make an api rest for the paging of a data table (daily bread when in CRUD), but I want to make it possible to put default values in the parameters that determine the current page and the number of items to return if not specified...
asked by 09.04.2018 / 16:36
1
answer

How do I solve problems with laravel 5.2 page?

I'm doing a query with laravel, and when I paginate, I get an error that says - The paging method does not exist (Method paginate does not exist.) On the one hand in the controller, I call the query and page as follows: $img_ventass = Img_v...
asked by 07.07.2017 / 07:27