Questions tagged as 'laravel-5'

1
answer

form update with request in laravel 5.3

I have This form that updates the user table, but it throws this error: ERROR MESSAGE: Creating default object from empty value The Code of the Form: <h1 class="text-center text-uppercase">Formulario de Edicion</h1>...
asked by 27.02.2017 / 03:41
2
answers

Duda View Composer and View Creator Laravel 5

Using laravel 5.2 I have two views: principal.blade : <!DOCTYPE html> <html> <head> <title>@yield('meta_title', $meta_title)</title> </head> <body> <div id="main"&...
asked by 31.01.2017 / 14:49
2
answers

belongsTo error in AppServiceProvider

I have an error in the belongsTo relationship in the welcome view, the error is the following: "Undefined property: stdClass::$work (View: ...\views\welcome.blade.php)" I recover the data from the query made in AppServiceProvider since it i...
asked by 26.11.2017 / 21:34
1
answer

How do I change my user authentication to another column in the db as username in laravel?

What I want to do is change the use of the "email" column to login using the "name" column. I followed this tutorial on youtube: link I do exactly what he does but fail in the attempt. Any suggestions why?     
asked by 03.01.2017 / 05:16
2
answers

How can I get a value between [] of a String?

When postgres sends an error, it sends a message with a code, example:    SQLSTATE [23505]: Unique violation: 7 ERROR: duplicate key violates uniqueness restriction «cargos_index_lower_unique»   DETAIL: The key already exists (lower (name ::...
asked by 08.11.2016 / 15:44
2
answers

How can I modify a field to integrate and return it null or empty? from laravel in DB postgresql

The table is as follows: CREATE TABLE public.productos_procesos ( id integer NOT NULL DEFAULT nextval('productos_procesos_id_seq'::regclass), id_productos integer NOT NULL, id_procesos integer NOT NULL, unidad_teorica integer, id_uni...
asked by 15.03.2017 / 18:56
1
answer

Validate Laravel Referential Integrity 5

In laravel 5.1, is there any way to validate the referential integrity of the data? I explain. I have 2 tables related by an FK Where Country can have several Departments (or States), how can I validate when a user wants to delete a Country t...
asked by 19.08.2016 / 16:49
2
answers

Compare variables in Blade [closed]

I need to make a comparison between 2 variables: Controller: $files = \File::files('images'); foreach ($files as $file) { $info[] = pathinfo($file); } $books = File::where('status', 1)->select('name')->get(); return view('catal...
asked by 15.07.2016 / 06:25
4
answers

Help with laravel 5.1

I'm starting to study laravel 5.1, I'm excited about this but when I create a controller (contactController) <?php namespace app\Http\Controllers; use app\Http\Controllers\Controller; class ContactoController extends Controlle...
asked by 18.07.2016 / 04:03
2
answers

Enter Data in a MySQL DB from Laravel

Controller class RegistroController extends Controller { public function RegistroController(){ return view('registra'); } public function storeg(Requests $request) { \App\registro::RegistroController([...
asked by 16.04.2016 / 19:34