Questions tagged as 'laravel'

0
answers

Problem with laravel and faker

I'm doing a migration. This way php artisan migrate: fresh --seed Could you help me, please? I get the following error: InvalidArgumentException : Start date must be anterior to end date. at C:\miapp\vendor\fzaninotto\faker\src\F...
asked by 01.12.2018 / 20:27
0
answers

my javascript does not work but it does not throw any errors either

At the end I put the script of what I want to execute, but it does not send me an error or something. My index.blade.php : @extends('adminlte::page') @section('title', 'AdminLTE') @section('content') <section class="con...
asked by 01.12.2018 / 20:53
0
answers

Error 419 (unknown status) in POST request with Ajax

According to what I have read, I have a security problem with the token. I try placing this: $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); In my header I find this: <!--...
asked by 02.12.2018 / 00:31
1
answer

Invalid argument supplied for foreach () with laravel

I have this error,    Invalid argument supplied for foreach () (View:   C: \ xampp \ htdocs \ bancohdvdao \ resources \ views \ aspiring \ create.blade.php) $aspirante = new Aspirante; $correo = DB::table('users')->where('id', 'Auth::us...
asked by 30.11.2018 / 17:07
3
answers

Get only 1 Item from a collection in laravel?

I hope you can help me. I have this query in laravel $poa = DB::table('poa_formatos') ->join('entities', 'poa_formatos.entity_id', '=', 'entities.id') ->join('acciones_especificas', 'acciones_especifica...
asked by 03.12.2018 / 16:49
3
answers

Error with table relationships and showing a value in Laravel

I have 4 tables that relate to each other in my database in PhpMyAdmin; I'm doing a php site with Laravel with Blade. And it turns out that I want to show some fields that in themselves have no relation with a main table that I have, but with ot...
asked by 30.11.2018 / 20:19
0
answers

Error requesting with Guzzle and Laravel

I have this code that was working correctly for me, which basically is a call to an api with a user and a password, to get a TOKEN: $client1 = new Client(['cookies' => true]); $headers1 = array('Content-Type: application/x-www-form-URLencod...
asked by 28.11.2018 / 19:37
1
answer

Iterate schedules with carbon and laravel

Hi, I have the following code with carbon where I want to get an array with the start time until the final hour every 30 min. It does not work for me Any suggestions. $inicio = $horario[0]->end_date; // 08:00:00 $fin...
asked by 28.11.2018 / 16:37
1
answer

I get this error. UnexpectedValueException Invalid route action: [App \ Http \ Controllers \ AspiranteController]

Route::get('aspirante','AspiranteController'); <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Contracts\Validation\Validator; class AspiranteController extends Controller { public function i...
asked by 29.11.2018 / 16:48
1
answer

Mail with attachment - Laravel

I am trying to send an email with an attachment when a record is created. This attachment is in the public directory of the project (public / registers_img) public function build() { $this->subject('Correo de notificación'); return...
asked by 29.11.2018 / 16:13