Questions tagged as 'laravel'

2
answers

Disable the CSRF token for laravel 5.2

In laravel 5.2 I want to disable CSRF on a route, since I am using pagseguro (michaeldouglas / laravel-pagseguro) and want to work with automatic return. I have tried to add the route in the exception array in the App \ Http \ MiddlewareVerif...
asked by 29.06.2016 / 21:46
1
answer

What are the "partials" folders in Laravel?

In Laravel there are "partials" folders is this a convention? What should I keep in these folders? PS: I'm starting the Laravel world!     
asked by 21.03.2017 / 14:44
1
answer

How to keep data already filled in textarea and select option after submitting a form? [duplicate]

I'm using the PHP language and the Laravel Framework 5. In the form validation, if it contains some blank field or with not accepted character sizes, when clicking save the system shows the validation message, however the textarea fields and t...
asked by 30.05.2016 / 17:29
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
2
answers

URL rewriting in HTACCESS ignoring existing files and folders

When I am going to pass a website on the server I put a .htaccess file with this code below: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> This code makes typing the site:...
asked by 10.12.2015 / 14:21
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
1
answer

How to add a foreign key with Migration?

I'm now learning to use Migration of Laravel . I was able to understand the understanding well, but I still do not know how to add a foreign_key I have the following Migration: Schema::create('usuarios', function (Blue...
asked by 29.04.2016 / 14:29
2
answers

How to Validate Jpeg as an extension for uploading files?

I'm a beginner in programming. public function upload(){ if(Input::hasFile('file')){ $novonome = uniqid() . '.jpeg'; $file = Input::file('file'); $file->move('uploads',$novonome); return 'Anexado com...
asked by 18.03.2016 / 15:57
1
answer

Edit record in the database

I'm trying to edit a Form using fill()->save() but instead of updating it Laravel 5 tries to make insert and gives error saying that the record already exists in the table. $input = $request->all(); $record->fill($input)...
asked by 17.03.2015 / 16:21
1
answer

Create session variable when logging in - Laravel

Good morning, I'm working on a site made in Laravel, which I did not do. I need to do the following: When the user logs in, I want to get a specific value (column "idLoja") from that user in the database, and create a session variable so that...
asked by 25.02.2016 / 20:08