Questions tagged as 'laravel'

2
answers

Popular column with id created + date / time

I have a column named "code". Is it possible to fill it out using the same method that inserts the form? If so, how can I implement this in my code. Method that receives the form and inserts it into the bank. public function insert(Ma...
asked by 08.11.2018 / 01:18
0
answers

Problems with insert in Oracle with Laravel [closed]

I'm having a problem with a INSERT in Oracle using the yajra / laravel-oci8 package, where I get the following error:    Error Code: 1722 Error Message: ORA-01722: invalid number Position   : 260 Statement: insert into TRANSMISSAOITB...
asked by 20.06.2014 / 20:43
1
answer

Laravel Route Authentication

Is there any way in Laravel to add permissions or put a user in a specific group at the time of login (I mean the Auth structure of Laravel itself). Example, I define that only an Admin Group has access to the Products / Create Route and that...
asked by 08.05.2017 / 01:29
1
answer

How do I translate for pt-BR?

I have a form with the following code: {{ Form::selectMonth('month') }} This returns me the months in English, how do I translate it back into Portuguese?     
asked by 21.02.2015 / 14:06
1
answer

Return array inside json [closed]

I have the following function in Laravel/QueryBuilder public function getEstudante(Request $request) { $estudante = DB::table('estudantes_identificacao') ->leftJoin('estudantes_telefones','estudantes_telefones.estudantes_...
asked by 22.07.2018 / 15:45
1
answer

Parse error: syntax error, unexpected '?', expecting identifier (T_STRING)

I can not find the error in this file, debug shows me error on line 46, but can not find a solution, some light? <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <[email protected]> * * For t...
asked by 22.01.2018 / 21:23
2
answers

How to pass multiple variables to a View in Laravel?

How do I pass multiple variables to the same view? Something like: return "view('textos.index', ['textos1' => $textos1, 'textos2' => $textos2, 'textos3' => $textos3]);"     
asked by 02.12.2016 / 22:56
2
answers

Create project in Laravel in previous version

When I create a project in Laravel this one comes in version 5.5, however I'm following a tutorial and the error code to execute. I think it's because in the tutorial, version 5.2 of Laravel is used. I then decided to create a project with...
asked by 11.10.2017 / 18:18
1
answer

How to solve this error in Laravel

I'm developing a project and got this error when I get a new version of it in github , after the server start I can not run the application, this error appears:    No Application Encryption Key Has Been Specified     
asked by 15.12.2018 / 18:31
3
answers

How to convert a date variable to Brazilian format within a view?

Within a index.blade.php I have a variable: <td>{{$ordemjoin->dataplanejamento}}</td> The date comes out in English format. How do I put it in Brazilian format? Note: version of Laravel 5.2     
asked by 05.01.2017 / 23:59