Questions tagged as 'laravel'

1
answer

Iterate an array to the end from a given randomly generated index - PHP / Laravel

Good evening guys. I have an array with a few bus stops with the following information: array:9 [▼ 0 => array:4 [▼ "id" => 35 "nome" => "Parada 35 - Copacabana" "endereco_completo" => "Rua Copacabana" "tempo" => 5 ] 1 => a...
asked by 03.06.2018 / 00:56
1
answer

How to display two different tables in the same view?

Using Laravel 5.6 I'm trying to display two different tables in the same view, but it's giving error This is my controller <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\NossaCasa; use App\NossacasaTitulo;...
asked by 25.05.2018 / 03:59
1
answer

Multiple keys in the session

I would like to save and retrieve an array type session in Laravel type in PHP Example : PHP : $_SESSION['dado']['dado1'] = $valor; Recovering echo $_SESSION['dado']['dado1']; Laravel $request->session()->put(...
asked by 25.05.2018 / 19:22
1
answer

Group and sum values from each group of a php laravel array

I have the following array: array(9) { [0]=> object(stdClass)#2477 (4) { ["type"]=> string(2) "in" ["category"]=> string(24) "Tratamento Odontológico" ["value"]=> string(15) "333.333333...
asked by 12.07.2018 / 21:00
1
answer

"SoapWrapper" does not work with laravel

I'm trying to consume a WS via application in laravel 5.6. This is the test code: namespace App\Http\Controllers; use SoapClient; use Artisaninweb\SoapWrapper\Facades\SoapWrapper; use Illuminate\Http\Request; use App\Soap\Request\GetConvers...
asked by 24.05.2018 / 09:00
1
answer

Doubt about the connection to the bank on laravel authentication 5.6 [closed]

Hello, I have a question and I can not solve it, I need to make the connection of the auth of laravel 5.6 with an existing database, but I am a little lost, I already put the sql server drivers and already connected with the bank in the database...
asked by 19.06.2018 / 19:55
1
answer

Registered users

I'm developing a system with Laravel and I have the following goal: To make only the administrator user able to register new users. My problem is not blocking the access of ordinary users to the user registry, but rather make the user registry a...
asked by 02.05.2018 / 15:45
1
answer

Error csrf token in laravel

I'm getting the error    TokenMismatchException   in VerifyCsrfToken.php (line 68) When I submit on the view information below. Detail is that in all my views I have csrf_token because of the blade template. Anyway, my view is this: @ex...
asked by 03.05.2018 / 14:37
1
answer

Retrieve captured id with JS in modal

I have a button that calls a modal to confirm deletion, this is in a table, each line a button to exclude the registration of that line But the way it is, it always deletes the first item from the list <button type="button"...
asked by 13.04.2018 / 21:33
1
answer

Laravel 5.4 (1/1) TokenMismatchException

Locally all forms work, but when I put them online you are giving erro as if you did not have _token assigned to forms . APP_NAME=MonkStudio APP_ENV=production APP_KEY=base64:KV/4jmhU507Kse+PSbsBJPUwKd1vG2bFsLmN0lDCQoQ= APP...
asked by 09.04.2018 / 04:43