Questions tagged as 'laravel'

1
answer

Add new value to an enum type field in Laravel

I am working with migrations in Laravel and I have a partners table that has a type attribute of type enum with the following values: $table->enum('type', ['cliente', 'proveedor', 'empleado', 'transportadora'])->nullable(); What I nee...
asked by 30.08.2018 / 22:40
3
answers

Can Laravel be installed in a shared hosting?

I will start to develop a project but I have a great doubt, can you install laravel in a shared hosting? Can I see the errors online and work directly? I have researched about Laravel and I see that Compoiser is used to install libraries, but be...
asked by 30.08.2016 / 14:36
2
answers

middleware (User roles) in laravel 5.2

I am in the development of a human resources system, for which I am using laravel in version 5.2. but I am in a dilemma when using middleware , so far I have 3 types of roles, the Administrator , Adminstrative and finally the Teacher that...
asked by 05.12.2016 / 15:57
1
answer

Identify null values in Laravel and MySQL

I need to make a query to update a data from the relation of two tables, where if the given date (variable $fecha_actualizar ) is the same for perfiles_evento and to check, update the stage in which it is to 4, I think the query is...
asked by 29.06.2018 / 16:32
2
answers

Is it necessary to use two types of validations in laravel?

I will present a topic that you may know, but for me it is not entirely clear ( for the amount of time I've been using the Laravel framework ), I hope this topic can be explained here: It turns out that I am developing a sitio web (admi...
asked by 11.04.2018 / 16:48
2
answers

Update the database when I move rows of a table

View code: <div id="tabs"> <div class="col-md-12" id="current"> @include('cms.public.views.partials._messages') <div id="table1"> <table class="table">...
asked by 23.08.2017 / 14:49
1
answer

laravel 5.5, multiple drivers in one or more views?

Greetings wherever you are on that side of the receiver, I have weeks learning about this giant that is laravel (5.5), I have a system to develop during my degree work, but I have a big failure, I can not find or not how to pass the methods of t...
asked by 06.10.2018 / 00:43
4
answers

ajax requests in Laravel

This is the example code of a controller and the normal handling (not AJAX) of a Request or request. <?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Routing\Controller; class UserController extends Contro...
asked by 01.12.2015 / 19:58
0
answers

Procedure stored in laravel with parameter

I have seen two syntaxes when calling stored procedures that receive parameters in laravel, both work perfectly: //Concatenando parametro DB::select('exec Miprocedimiento "'.$parametro.'"'); //Utilizando ? DB::select('exec Miprocedimiento...
asked by 11.04.2018 / 17:17
1
answer

Entrust Laravel 5.3

I've been working with Laravel Entrust for several days. It turns out that when I try to validate the roles from the routes, I get the following error: Class App\Http\Zizaco\Entrust\Middleware\EntrustRole does not exist Here is my validatio...
asked by 26.10.2016 / 20:50