Questions tagged as 'laravel-5'

1
answer

Laravel Convert the value of an array to Int

Good, I need to save in a variable the specific value of an array in another variable From here I receive the data: $data = \DB::select(" SELECT SUM(CASE WHEN status like 'Por Despachar' THEN 1 ELSE 0 E...
asked by 16.06.2017 / 03:34
1
answer

Trying to get property of non-object

Well folks, my project is throwing this error at me now, I am quite new with Laravel the truth and I do not understand very well at the moment, but the important thing is to learn among all. I hope you can help me. He launches me directly....
asked by 20.09.2016 / 06:47
1
answer

Greater_than_field Request Laravel

In previous days I asked this question Validation" greater than "or" less than "in the request of laravel to obtain a customized validation in laravel that worked correctly validating two fields, but I would like to know if it is possible to p...
asked by 25.10.2016 / 15:53
1
answer

Error 500: When uploading site in Laravel to Hosting, how to put the whole project in public_html?

Hire a Hosting service (Donweb) with an initial plan, which according to the provider's support, does not allow me to access external folders of public_html. So, my whole project has to be contained within it. I have seen several videos, wher...
asked by 14.10.2016 / 22:25
1
answer

Problems with where nested in Query Builder Laravel 5

I have the problem when I pass empty parameters in a filter. I am using a scope where I filter by several parameters, including year, month, province, and name. About Name there are no problems since I use a like. But in others when filter, t...
asked by 13.10.2016 / 03:04
1
answer

Foreign Values in Forms

See, I have 3 tables. Plants: Schema::create('plantas', function (Blueprint $table) { $table->increments('id'); $table->string('nombre'); // Nombre de la planta. $table->string('tamaño'); // Clas...
asked by 13.02.2018 / 17:01
2
answers

Go to a page in a controller

You see, I have a User table with a variable called role, for which I have this form: @extends('layouts.app') @section('content') @Logged() @include('partials.errors') <form method="POST" action="../puesto"> {{ csrf_field() }} &...
asked by 19.02.2018 / 09:42
1
answer

Can a record be created when a php artisan migrate is done?

Comrades the question that arises is: Can a record be created automatically when the migration is created? That is, when you make the **php artisan migrate** and create the migration within one of the tables, a record is created....
asked by 29.03.2017 / 18:52
2
answers

Problem when validating image with Request

I am developing in Laravel 5.1 and I am having a small problem when validating a form, I am using Request for this, the rules I have are the following: ProductoCreateRequest public function rules() { return ['nombre' => 'r...
asked by 21.03.2017 / 01:53
1
answer

problems to save a file in the public_html of the hosting in Laravel

The file (in this case an image) does not upload to the hosting public. Unusually something that started to happen to me today. Without reason. I did not make any changes to the controller. And localhost is perfect Restart the hosting to 0 an...
asked by 01.10.2016 / 05:27