Questions tagged as 'laravel'

1
answer

Help with middleware group

My web.php file looks like this: Route::get('/login', 'AutenticacaoController@login')->name('autenticacao.login'); Route::post('/logar', 'AutenticacaoController@logar')->name('autenticacao.logar'); Route::resource('autenticacao', 'Autent...
asked by 08.09.2018 / 15:24
1
answer

Send form without loading page via json

I'm developing a website and I'm using laravel, and I need to send a form without updating the page, I'm using jquery, but I do not know much about it, can anyone help me? html form <form> {{csrf_field()}} <div class="user i...
asked by 16.07.2018 / 18:58
2
answers

Laravel form field mask

Good evening, all right? I can not find a way to include a validation mask with Laravel's Form Collective. Here's the snippet of code with a field: {{Form::label('comp_nota','Competência')}} {{Form::text('comp_nota','',['class'=>'form-c...
asked by 15.07.2018 / 02:17
1
answer

Error saving monetary data: A non-formed numeric value encountered

Contextualization: Home I am using the * Jquery-maskMoney library to format the monetary data. But when saving this data the following error occurs:    A non well formed numerical value encountered JQuery Library: link The fol...
asked by 03.07.2018 / 22:41
1
answer

Pass variable query buider Laravel

I'm trying to do this function with Laravel Query Builder public function getEstudantesCargaHoraria(Request $request) { $ano_letivo = $request->ano_letivo; $turma_id = $request->id; $ano_letivo = 2017; $turma_id = 528...
asked by 25.06.2018 / 18:27
1
answer

Write errors from Soap-Server

I have a client-soap in laravel and I would like to know how to store in a file the errors that come back from the soap-server. Below is the code for my client-soap and where it does the soap-server pro request. try { print("&l...
asked by 11.07.2018 / 16:05
1
answer

Laravel - Insert to the database

I'm new to Laravel and I'm trying to insert some data into the database, but it keeps giving me error, I do not know if I'm doing it right How I am doing: $nome=$_POST['nome']; $sobrenome=$_POST['sobrenome']; $email=$_POST['email'];...
asked by 28.06.2018 / 16:29
1
answer

Laravel - Website and API Authentication [closed]

I am developing a Chat where it can be accessed both by the web and by an application, so I made a laravel project with an api, both the site and the application will be fed through the api that stays on the same server what I am in doubt is abo...
asked by 12.06.2018 / 21:27
1
answer

Relationship MORPH

I'm modifying a table of the database, in case a morph relationship of the fields that conform to the image is to be made. I'm using Laravel 5.6 How do I make this relationship within the migration?     
asked by 13.06.2018 / 19:12
2
answers

Sharing variables between functions in the controller

I have a function in my controller that receives some requests, and in the end everything is stored in two arrays. In this function, if I do the following: return view('negocio.detalhes-trajetoa', compact('arrayLogradourosA', 'arrayLogradouro...
asked by 03.06.2018 / 23:31