Questions tagged as 'laravel'

1
answer

Error uploading Images with Laravel

I'm trying to use Jasny's upload file ( link ) to upload photos and save the name photo in the DB with Laravel 5.1 but it is not working. Apparently the laravel is capturing the photo when I give the command dd(Request::capture()); it...
asked by 21.05.2016 / 07:11
2
answers

How do I get the values inside an array?

0 => {#557 ▼ +"nis": 1 } 1 => {#561 ▼ +"nis": 16192248487 } I have this array, I want to get the values: 1 and 16192248487 , and throw them in a variable to give dd and print them on the screen and show only:...
asked by 06.12.2017 / 14:17
1
answer

Laravel - Popular a list with files in a directory

I would like to populate a list on a Blade page, in the Laravel Framework. I tried <select id="idSelMinhaLista"> @if(isset($arrayRemessa)) @for($i=0;$i < count($arrayRemessa);$i++) <option>{{$arrayRemessa...
asked by 14.11.2017 / 13:09
2
answers

Adapting code for LAravel, auto-fill CEP

Hello, I'm trying to adapt the code for this link: link for Laravel 5.2, without success. It works well without the framework, as for "css" and "js" I can import them into laravel. But I believe the problem is in the file "query_cep.php" that...
asked by 08.06.2016 / 13:29
1
answer

How to deal with multiple logins in Laravel? [duplicate]

In my application I have 3 distinct areas: Admin    Where everything is managed, authentication is currently done by Sentry (very good by the way). For this area I have the Users model that communicates with the database. Students...
asked by 14.01.2014 / 20:48
1
answer

Error fetching data for a view [closed]

I'm trying to bring data to a view to do some testing on Laravel but it's not working. Controller class ProfileController extends Controller { private $aluno; private $request; public function __construct(Aluno $aluno, Request $request...
asked by 12.05.2016 / 14:45
1
answer

How to use try catch to handle the error of the variable id in FindOrFail [closed]

public function finalizarCompra () { try { $compra = Compra::findOrFail($compra->id); } catch(ModelNotFoundException $e){ return "erro"; } }     
asked by 11.03.2016 / 14:38
1
answer

Count in PHP via variable value

I'm having trouble with something relatively simple, but it's causing me a headache because I always get a mistake. In a precise application pick up the amount of open classes coming from the Crud de Turmas. It was to show the amount of open-...
asked by 15.12.2018 / 00:26
1
answer

Error loading XML in Laravel

I'm getting the error below when loading XML using Laravel. I tested the import with pure PHP and it was normal. Anyone have any idea what that might be? I understand that &quot; is quotation marks, but I did not find it in XML. sim...
asked by 28.08.2018 / 14:52
1
answer

syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting end of file. Does anybody have any idea why they made a mistake? [closed]

<html> <body> <h1>Listagem de Produtos</h1> <table> <?php foreach($produtos as $p) ?> <tr> <td><?php $p->nome ?></td> <td><?php $p->valor ?...
asked by 09.08.2018 / 03:43