Questions tagged as 'laravel-5'

2
answers

Sidebar via Controller - Laravel 5.1 + AdminLTE 2

Good afternoon! I have the following problem here ... In my view template app.blade.php I have the line @include('partials.sidebar') that includes my sidebar, ok. The question is that I have 2 different sidebar, one for each...
asked by 23.12.2015 / 19:46
3
answers

Simple search error in Laravel

I'm trying to perform a simple search. When you put dd($clientes) in the search method it is returning the search result correctly, but when returning to the view the error:    Trying to get property of non-object (View:   /var/www/htm...
asked by 06.02.2017 / 21:30
2
answers

Help Query Sum

I'm trying to retrieve a column and make a sum - using SUM - according to the time range, but without success. Can you help me with this question? Detail: I'm not exactly using a table, but I call a function in SQL . The application w...
asked by 26.07.2018 / 00:57
2
answers

Laravel php auth system

How to authenticate user login and password in laravel, I am trying already has some time but I can not. Routes Route::get('/login',['uses' => 'loginController@login','as' => 'login']); Route::post('/login',['uses'=>'loginContr...
asked by 24.01.2018 / 15:10
1
answer

Middleware Group Authentication Laravel

save folks, I want to know how to design my admin route so that the user does not have access to this route but they both have to be authenticated. My routes Route::group(['middleware' => ['auth']], function () { Route::get('/Admin'...
asked by 29.01.2018 / 17:48
1
answer

Problems with helpers in laravel 5.6

I created a PHP page and did some functions in it to help with my project. I added this in this page through this line: "files": ["App/FunAuxiliar.php"] But when I uploaded the system for production, I was not able to call the function...
asked by 06.09.2018 / 15:22
1
answer

Upload images: More than one input file with the same name

I need to upload images, but I can not just create an input and use multiple , like this: <input type="file" name="images[]" multiple> What I need is to create 5 inputs that in the backend produce the same result as above. I...
asked by 24.11.2017 / 18:41
1
answer

My project Laravel does not see my Javascript file

The structure of my project looks like this: ThemainLayoutpageisthis,thisiswhereIgetthevue,axiosandappfile:<!DOCTYPEhtml><htmllang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible"...
asked by 24.10.2017 / 17:35
1
answer

Use external variables to route from Laravel 5 to send to view

Hello, I'm working with Laravel , and in my Routes file, I'd like to leave a variable I want to use on all routes, like this: /routes/web.php $foo = "ola mundo"; Route::get('/', function () { return view('page1', ["title" =>...
asked by 03.10.2017 / 14:37
1
answer

How to create search filters in Laravel?

I need to create a search system that receives data through Inputs, select and checkbox. My form to search: <form class="navbar-form navbar-left" role="search" action="{!! url('/pesquisar') !!}" method="post" style="margin-left: 25%;marg...
asked by 22.03.2017 / 15:02