Questions tagged as 'laravel'

2
answers

How to get the GET value in Laravel, even when the request method is POST?

I am making a request for a route, where the request method is marked with Any - that is, it accepts any method. public function anyIndex() { $nome = Input::get('nome'); $id = Input::get('id'); // Queria específico do 'GET', nã...
asked by 22.04.2016 / 21:32
2
answers

Laravel - Update all fields of a large table

I have the following problem ... I am migrating a system, and in the same I own a table of clients This table has a field called " cli_password ", which represents the client password To use Laravel authentication I had to create a " pa...
asked by 04.09.2014 / 22:16
2
answers

TokenMismatchException after any ajax error in Laravel 5.1

I'm working with Laravel a short time and I'm having a problem when I use ajax requests. When my application returns any error and I try to send one more request, Laravel sends me this error: TokenMismatchException in VerifyCsrfToken.php line...
asked by 07.01.2016 / 11:57
2
answers

Upload and structure for storing images in Laravel

I started to build a portal, using Laravel, which has the following requirements: users, places belonging to users and classifieds belonging to users . As each of these requirements requires images, I would like to know the best method for s...
asked by 15.01.2014 / 12:23
3
answers

Friendly URL for GET form in Laravel 4

My question is this: I have a search form (GET), and I would like to know how to execute submit sending those parameters to the URL in a friendly way. Note: parameters are not required. Form : {{ Form::open(array('route' => 'ne...
asked by 16.12.2013 / 18:04
2
answers

Retrieving value in the pivot table as the property of a part of the relationship

I have the manyToMany relationship between Grupos and Usuarios and a pivot table grupo_usuario that stores the keys and an extra aprovador , Boolean field, which serves to indicate if the user in the relationship can...
asked by 05.08.2015 / 01:04
1
answer

PHP: How to convert a number into a string? [duplicate]

I have an application that generates a PDF receipt. But in the bank the values have to be converted into words BD | PHP 10 | TEN 15 | QUINZE 7 | SEVEN Is there a function that returns the string of a number in php?     
asked by 07.11.2017 / 14:13
2
answers

Which tool to use for sending SMS in laravel [closed]

    
asked by 22.01.2018 / 14:01
1
answer

What does "{{__ ('Login')}}" mean in the Laravel layout file?

In the file \resources\layouts\app.blade.php it has the following excerpt in line 37 : {{ __('Login') }} Apparently this is a Helper. But what is its meaning / function? I ask this because depending on the case I want to see if it i...
asked by 07.03.2018 / 20:04
1
answer

Validate composite key with Laravel?

I have a table where the employees of a company with the following fields are inserted; id , name , email , use_id , role_id .    user_id is the id of the company that the official works. The v...
asked by 25.08.2017 / 17:55