Questions tagged as 'laravel-5'

1
answer

Laravel 5.2 pages redirecting to POST without showing validation errors

In laravel 5 whenever I try to send a post to save or edit the data, a redirection occurs in all requests with status 302. This is occurring on any system page where I make a POST to insert the data into the database. I'm using% cus...
asked by 06.05.2016 / 16:26
1
answer

Laravel - validate input arrays and return values in case of error

I am creating form using the following code: In the create.blade.php file {!! Form::open(['route'=>'orcamentos.store']) !!} {!! Form::text('descricao', null, ['class'=>'form-control', 'autofocus']) !!} {!! Form::text('produto[]', null...
asked by 01.06.2016 / 04:09
1
answer

Call to undefined method Illuminate \ Database \ Query \ Builder :: lists ()

I have a problem creating a list of types for my project, for some reason in others Controller worked perfectly but unfortunately not at this time. I'm doing the create method of my Controller public function create()...
asked by 29.09.2016 / 01:48
1
answer

Change the naming of the migrations table of Laravel 5.1

I'm creating an application that should be scalable and for this a full scope of tables, relationships, and the like has been made. In this scope, I use the migrations table that Laravel 5.1 treats for each database implementation. Is the...
asked by 02.12.2015 / 01:37
2
answers

How to perform a query of a query stored in a string through class DB?

I wanted to convert this query as I could use it in Lavarel DB \ Facades SELECT FIND_IN_SET(KillCount, (SELECT GROUP_CONCAT(KillCount ORDER BY KillCount DESC) FROM users)) AS Rank FROM users WHERE id = 1 It takes the position rank of the pl...
asked by 27.09.2017 / 15:44
1
answer

Format data before saving in bank

I am using Laravel to develop a system, but I have a problem with the data coming from a form, I need to format a data in the following format ( #. ## strong>) to perform certain calculations, the problem that the value comes with the f...
asked by 22.09.2017 / 14:06
1
answer

Problems with laravel 5.3

I'm having trouble setting and grabbing items from a sessão , in this case I'm setting which page should I mark in the menu as active . No __contruct of my controller I'm doing this: public function __construct() {...
asked by 06.01.2017 / 11:47
1
answer

Creating Schema with Laravel 5.1

Is there any way I can make Laravel 5.1 itself create a database as there is no such database? (can be either in a table of a master bank or in the same bd's list itself ... whatever)     
asked by 02.12.2015 / 01:59
2
answers

How to insert an image using Laravel's Blade 5.1

If I need to insert a css file or a script, I should do respectively: <link href="{!! asset('css/style.css') !!}" type="text/css" /> <script type="text/javascript" src="{!! asset('js/app.js') !!}"></script> On some sites,...
asked by 07.12.2015 / 02:13
2
answers

Form Construction

After several months without using Laravel, I now return with this version 5. It may sound like bullshit, but I'm having trouble creating a simple form. It seems that the Illumiante / html is not coming by default in the framework, so it is nece...
asked by 20.02.2015 / 16:41