Questions tagged as 'laravel'

2
answers

Error in Laravel

I have the following error when editing a record NotFoundHttpException in RouteCollection.php line 161:  this is the code Route::get('/ficha/editar/{id}', 'fichaController@editarficha'); Route::post('/ficha/edit/{id}', 'fichaController@editfi...
asked by 28.07.2017 / 15:13
1
answer

Laravel, show static content

I am trying to always show the same content in the footer (Content that is stored in a field of the data base). The footer has to appear in all the pages of the web. The problem is not how to pose it: $footer = DB::select('SELECT * FROM gen...
asked by 30.07.2017 / 01:07
3
answers

Maintain the same session for two laravel projects in subdomains

I would like to create two laravel projects in two subdomains on the same server, eg: app1.domain.com app2.domain.com It would be with the same database, what I would like is that when logging in to an application, it will also b...
asked by 28.07.2017 / 15:57
1
answer

How to obtain specific data from an array that is stored in a Session in Laravel 5.1?

Greetings guys, the topic is simple I need to show in a view the data of an array that is in session, which contains several arrays. What I am doing is the following: This is how I update the array: public function inscribir(Evento $even...
asked by 08.07.2017 / 14:38
1
answer

Manipulation of dates in laravel are printed in English using Carbon formatLocalized

I am showing the dates in my view show using Carbon from the controller, but when displaying in Spanish the dates are not shown with "Wednesday" or "Saturday. Controller $tiempo = new Carbon($orden->Fecha_de_Inicio); setlocale(LC_TIM...
asked by 13.07.2017 / 03:52
1
answer

Laravel Session Return: Null

I need to pass variable se session to get variables in other views or controllers at the end I get a NULL This is what I am doing: public function login(Request $request){ $client = new Client(); $this->validate($request...
asked by 04.08.2017 / 18:37
1
answer

Consultation in laravel

I make this query: $costo = Habitacion::where("id","=", $habestatus)->select('hab_costo')->first(); * Habestatus is a variable that has the id of the room. and when you print the result, you throw this at me: {"hab_costo":2000}...
asked by 05.03.2018 / 23:28
1
answer

Create a Facade Laravel 5.4

I am new using laravel and what I want to do to incorporate into my project a class of my own that I have developed. I tried to follow the steps of this link but it does not work out, what I done so far is the following: 1.) Create the...
asked by 05.07.2017 / 22:23
3
answers

Values undefined when iterating in a view of Vue.js

My problem is that when making a query with Axios de Vue.js I get the query data. However, by sending the values to my view and iterating them into a select tag, it shows me "undefined" values. This is my simple query from the controller: p...
asked by 13.06.2017 / 13:37
1
answer

Laravel product detail

I'm doing a project in laravel and I want to have two show functions in the controller, that is. In first I have the list of categories that gives an id to each element, then I enter the http://localhost:8000/item/4 element having this...
asked by 27.03.2018 / 02:55