Questions tagged as 'laravel'

1
answer

Method show does not work in laravel with resource controller

I have a little problem with the show method of my controller. What I want to do is show a single record, but I do not recognize the view to which I am pointing. This is my method where I want to redirect my vision public function show($id)...
asked by 30.08.2018 / 19:49
2
answers

Problems With the hasPermissions method of Entrust in Laravel 5.6

I'm using laravel and entrust and look at my driver's code > public function edit($id) { $role = $this->roleRepository->findWithoutFail($id); $permission=Permission::all(); if (empty($role)) { Flash::error('Role no...
asked by 22.03.2018 / 15:45
2
answers

Handle .css files in Laravel

You see, I have a file named estilos.css with the following code: div{background-color: #000000;} I have stored it in the public / css directory, and now the story is how I pass it to the views. I tried to put it like this: <link rel="...
asked by 20.02.2018 / 21:13
1
answer

Encrypt a url parameter in laravel

I need to encrypt a parameter in a URL, for example link and display it in this way link this is the view   and this is the controller     
asked by 11.01.2018 / 15:20
1
answer

Eloquent query

Performing a query in eloquent, which lists the records of the table to which they are related to the records in table b, up there well. Additionally I need you to also list the records of a that are not related in b. Any suggestions?     
asked by 15.03.2017 / 15:42
2
answers

I'm doing a php system and I miss this code problem

   syntax error, unexpected ')', expecting '('   in 95fa8dfb635d690d28edcc5a99f8d587929a8d61.php The route that leaves by clicking on it is    C: \ CursoLaravel \ sisSales \ storage \ framework \ views (line 33) and this is the line...
asked by 31.10.2017 / 07:12
2
answers

Modifications to Vue do not work

The .vue files that are in the resources/assets/js/components box are the system components. It happens to me that when I edit any of those components, no modification appears in the view. file: resources/assets/js/app.js...
asked by 28.08.2017 / 17:13
2
answers

Input stores old data

I have an input type number , depending on a radiobutton this input can change between type date and type number . The problem is that after the submit and changing the selection of radiobutton my input st...
asked by 14.03.2018 / 05:18
1
answer

Disable as option a placeholder in laravel 5.4

If I have a select with: {!!Form::label('tipoUsuario','(*)Rol',['class'=>'control-label'])!!} {!!Form::select('tipoUsuario',$tipoUsuario,null,['id'=>'tipoUsuario','class'=>'form-control','placeholder'=>'Seleccione Usuario','tabind...
asked by 19.03.2018 / 22:54
1
answer

Getting data with orWhere

I have the following function that collects data from the books I have purchased. It certainly works, when I search for the three parameters it gives me what I want and when I do not use the parameters it gives me what I look for too. The thing...
asked by 10.03.2018 / 19:06