Questions tagged as 'laravel'

0
answers

Problem with file upload with ajax / jquey and laravel 5.7

Hello, I need to make a request in ajax with laravel 5.7, but for some reason ajax is only processing and does not return a response, it follows the code: Ajax: jQuery.ajax({ url: "{{ url('/gravar/audio') }}",...
asked by 10.12.2018 / 13:02
1
answer

throw new MethodNotAllowedHttpException ($ others); Laravel 5.7 Send HTML Form

When creating the update method, Laravel is giving the error. protected function methodNotAllowed(array $others) { throw new MethodNotAllowedHttpException($others); } View {!! Form::model(array('route' => array('colaboradores.upd...
asked by 23.12.2018 / 19:53
1
answer

Relationship Eloquent / Laravel Onetomany

Good afternoon, I'm using Laravel 5.7 to create an ordering system. So I have 3 tables: customers, products and orders. My Database: For the time being my migrations look like this: Migrations: migration clients: Schema::cre...
asked by 11.12.2018 / 18:42
1
answer

How to display the name of the image that is in the bank in the view with Laravel?

Good evening. I'm having trouble performing an update on an image with Laravel on the Mysql database. The store method of my controller looks like this: public function store(Request $request){ $filename = $request->imagem->get...
asked by 12.12.2018 / 02:17
0
answers

Should I use $ request-validate or $ this-validate within my methods?

I am in doubt about using validators in Laravel , within my methods it is recommended to use $this->validate or $request->validate ?     
asked by 08.12.2018 / 19:04
0
answers

Bug checking if there is a record if the button is disabled - LARAVEL

I'm having a bug it is not verifying correctly whether or not there is a related table record, it always comes from the current table and not from the other table DATA YOU SHOULD CHECK IF YOU EXIST IN THE RENEWAL TABLE (nomerespo, nomealuno)...
asked by 07.12.2018 / 19:42
0
answers

error when trying to execute npm commands in the terminal

I'm trying to use the node's nmp command to work with laravel, but I get the following error; Pc1@Fund-Sala2-pc1 MINGW64 /c/Laravel/teste $ npm install && npm run dev npm WARN deprecated [email protected]: Browserslist 2 could fail o...
asked by 07.12.2018 / 19:10
0
answers

Group by month or week with Laravel eloquent

I have a project that has management of my investments, that is, it takes my daily statement and saves it in my project so that I can see how much it is yielding, in summary I have a table that these values are daily, I can already generate the...
asked by 07.12.2018 / 20:01
1
answer

"Expected response code 220 but got an empty response" when sending email laravel

I'm trying to send an email using laravel. I tried something like: api.php: Route::get('emailAnimalEncontrado', function () { $data = array( 'name' => 'Novo animal encontrado em Franca. Você pode ajudá-lo?' ); M...
asked by 22.12.2018 / 16:01
1
answer

Undefined variable not laravel when trying to send email

I need to send email to more than one person, for this I've created a for replay structure, but I'm getting my variable undefined. I tried something like: public function avisarAnjos(Request $request) { $usuariosAnjos = User:...
asked by 22.12.2018 / 18:54