Questions tagged as 'laravel'

2
answers

Running a cycle within an array?

How can I add more items in the "items" array? I have a table with several items and I want to run a foreach inside to load each one of them, but when I do it I throw an error (syntax error, unexpected 'foreach'). The project is done in Laravel...
asked by 05.12.2017 / 05:13
1
answer

implement template html in laravel project

I have created a php project with laravel 5.4, I have configured everything correctly and everything works perfectly, I have bought a complete template to implement it to my project, made in bootstrap, and I know that it can be used with laravel...
asked by 04.12.2017 / 13:00
0
answers

Show image in different languages laravel

I have the following problem with laravel and php. Currently I have a section called "news" in Spanish and "news" in English. in which a name, description and image are loaded. Until then everything is fine, the issue is that when an image is...
asked by 15.12.2017 / 20:48
1
answer

Do not load the actual values I choose from a select laravel - js

I have a select that when selecting I bring some information from the database by means of an ajax, so everything is normal, and I have the following function in javascript that executes certain operations with that data based on the selection I...
asked by 04.12.2017 / 08:01
1
answer

Help .. Route mix php laravel

Something strange happens. It happens that I have three groups of routes one for the admin and the other for secretary and teacher, what happens is that I put the controllers in each one, so that the admin can also see it, but at the time that s...
asked by 03.12.2017 / 20:46
2
answers

Use table created phpmyadmin in Laravel

I have a table with more than a thousand records, which in its day import to phpmyadmin, with which I did not migrate from that table. I made its respective model respecting the singular and plurals corresponding. To say that in " local "...
asked by 28.12.2017 / 15:13
1
answer

How to update several laravel php records

Well I'm making an attendance list and I want to update all of the people at once. I spent all day without solving it. Sight code @extends('layouts.docen') @section ('contenido')      <h3>Editar Asistencia</h3> @if (count($e...
asked by 30.11.2017 / 06:21
1
answer

Why does not the class work for me, Class 'Image' not found?

use Image; $empresa= empresa::find($id); $empresa->fill($request->all()); if ($request->hasFile('logo')) { $imagen=$request->file('logo'); $image_name = time(). '.'. $imagen->getClientOriginalName...
asked by 26.11.2017 / 04:04
0
answers

Incompatibility Middlenware and ExceptionRender LARAVEL 5.1?

I have Middlenware to control access to illegal routes, but there is a session variable that sends you to abort 502 and it has ALWAYS worked. Today I have started to play the render for the handling of the exceptions produced by Mysql and now...
asked by 16.12.2017 / 18:41
2
answers

DataTables is not sorted or filtered, it only changes form of tables, Laravel 5.2

I have a problem, with a view in laravel I am trying to use Datatables to perform the pagination and search, but the table changed with the data is not shown, also missing the paging and search. Attached the view: indexEstado.bl...
asked by 27.11.2017 / 19:53