Questions tagged as 'laravel-5'

1
answer

return two views in a Laravel 5.5 driver

I would like to know if I can return two views in a laravel driver, the version I have is 5.5 and I am trying this way: Driver: $info1 = [ 'datos' => $datos1, 'nombre' => $nombre...
asked by 30.11.2017 / 14:52
1
answer

What is the best way to deal with different user roles?

I need you to guide me as to the best way to control various types of users, I currently have 3 (Admin, user, editor), the role field I have in the users table as an integer (0,1,2), they can increase the number of roles. What is the best or mos...
asked by 20.11.2017 / 10:57
2
answers

Laravel - Assign a value in an option of a select!

Hello (I'm just learning), I need in the value to assign the value of the id. Example: <option value="{{$idcategoriacuenta}}">{{$categoria}}</option> The problem is in the array () I do not know how to send the value o...
asked by 20.11.2017 / 05:57
2
answers

Problem with POST / GET routes

I was doing tests with routes in Larevel 5.1 , in local, and I found a possible design error of the Framework? If I create a route like this (having the indicated method in the corresponding controller): Route::post( 'test/rooting',...
asked by 08.11.2017 / 11:15
2
answers

Change column name ID - Auth Laravel 5.5

I'm doing a login with laravel, I had a table already created. The problem is that in my table the id has another name and when trying to login it shows me this error. "Undefined index: id" This is User.php namespace App; use Illuminate...
asked by 05.10.2017 / 23:14
1
answer

DatatTables Laravel 5.4

I'm trying to make the Datatables plugin work according to Yajrabox but I can not get it to show anything, it just shows the table but without DataTable options. My code is: ProductosController.php use Yajra\Datatables\Datatab...
asked by 20.09.2017 / 10:25
1
answer

Error using Javascript variable in Chart.js

In Laravel, I have a function defined on the blade to capture the selected text in a drop-down list: <script type="text/javascript"> function sacar_nombre(){ var combo = document.getElementById('titulo'); var titulo = combo.options[c...
asked by 10.09.2017 / 12:09
3
answers

I can not see the bar of the library DEBUGBAR in laravel 5.4

I have installed this library barryvdh / laravel-debugbar in laravel 5.4.36 and I can not get it displayed, I added this line in the config / app in the service provider section Barryvdh\Debugbar\ServiceProvider::class, and in the section o...
asked by 11.09.2017 / 19:23
1
answer

Read array from a file in PHP with Laravel

I have an array saved in a file inside a folder that I created in the App called Arrays. It is the following: $contentTypeArray=array( 1 => 'TEXTO', 2 => 'PDF', 3 => 'PPT', 4 => 'AUDIO', 5 => 'VIDEO', 6...
asked by 12.09.2017 / 10:23
1
answer

Laravel: Rename a file located in / resources

I have files saved in the following path: /resources/views/projects/nombreproyecto.blade.php So, I have a form that I ask for the new name of the project and what I want to do is rename the file, for example: I have a project called...
asked by 01.09.2017 / 14:47