Questions tagged as 'laravel-5'

1
answer

Problem when displaying data

I have this script at the moment of executing it shows me error Tables: Controller $menu=DB::table('menu') ->select('menu','url','id_menu')->get(); $submenu=DB::table('sub_menu')->join('menu','...
asked by 09.08.2017 / 23:14
1
answer

Differences between Form :: model and Form :: open?

Good afternoon, I am learning laravel and when using the laravel collecitve library, when creating forms, I see that sometimes the form opens with Form::model and others with Form::open . As much as I look for I can not find the dif...
asked by 11.09.2017 / 20:39
2
answers

Show image of Storage as background

Right now I have the code that looks like this, I access the assets folder, which is inside public: <div class="itemProjectImage" :id="'itemProjectImage_'+i" :style="'background-image:url(/assets/img/projects/'+project.slug+'/home.jpg'">...
asked by 04.09.2017 / 17:37
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

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

Extract the array in json components, which look like consecutive arrays

I am faced with the following dilemma: I am using the api C3.js of statistics in a project, where I want to make a graph of time of day and the accesses to a building, I have: var chart4 = c3.generate({ bindto: '#estadisticaTemporal',...
asked by 06.09.2017 / 12:03
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

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