Posts by Marcos Birro • 353 points
17 posts
-
0
votes0
answers21
viewsQ: How to save a Decode bae64 image to Laravel 8?
I am receiving a several images in Base64 format. I only receive the string. How do I decrypt and save on Laravel 8’s Torage? I’m doing it like this but it makes a mistake: $image1 =…
-
0
votes2
answers88
viewsQ: How to feed an array using data from another array in php?
Does not accept the foreach? { $ssparray = array( //Array numérico sendo a segunda dimensão. 'mensagem' => array( 'mensagem' => 'OK - preventiva realizada', 'usuario_api' => 'userapi',…
-
1
votes1
answer450
viewsQ: How to do a like research in Aravel 5.5 using eloquent relationship?
I need to do a survey using like in a model that has relationship with another table(equipment). What has happened is that it is bringing all the records of the ordemservic table with the null…
-
1
votes1
answer115
viewsQ: I can’t make research work with eloquent and relationship!!! Laravel 5.5 and mysql
I’m doing a search taking a piece of word and playing a search like LIKE for fields fields. Use the Eloquent and relationships, but does not bring the data. { $pesquisa = $dataForm['pesquisa'];…
-
1
votes1
answer250
viewsQ: How do I mount a select with two fields using colletivehtml in 5.5?
Good afternoon. I use Laravel 5.5 and for forms I use laravelcollective. I mount a select this way: $locals = Local::get()->pluck('codigolocal', 'id'); and the result is a select with the value =…
-
1
votes1
answer277
viewsQ: ACL Laravel using ADMINLTE
Good morning. I am using Laravel 5.5 and adminlte. I implemented Acl with middlewares and use can to test permissions. I would like to put can('centrocusto') in the adminLte menu. It’s not working.…
-
0
votes0
answers138
viewsQ: How to pass data from one table to another when one has a relationship?
I created a table by Migration that has relationships and have a table with the same fields (except the incremental id) that has the data. I need to pass the data from the table that has the data to…
-
-1
votes2
answers628
viewsQ: How do I search a combo field as I type the text?
I have a combo field with over 2,000 records. It’s hard to select what I need. I am in need of something (Bootstrap?) that as I type a part of the word the combo will position itself in the typing…
-
0
votes1
answer26
viewsQ: Why are you error in the Protect variable by saving manually?
I am entering a record manually (without create) taking data from Dorm and recording but is giving an error in the $request variable and I am not able to solve it. It is declared in the same…
laravelasked Marcos Birro 353 -
4
votes2
answers2598
viewsQ: How to Insert Taking Data from FORM in Laravel 5.2?
I’m looking at the Laravel documentation on dbquery, in the Insert case. I need to do Insert outside of the Resource method (manually. Type: DB::table('users')->insert( ['email' =>…
-
3
votes1
answer512
viewsQ: How to pass two variables from a view to the controller?
i have a link where I already pass a variable to the controller. It works ok. How do I pass two? My link in View: <a href="{{url("/ordemvar/$equipam->codigoequipamento")}}"><i…
-
0
votes1
answer4816
viewsQ: How to change the width of a native bootstrap navbar?
Good morning. I need to change the width of a native navbar. I simply took the site boostrap.com and pasted it in my template.blade.php but it’s occupying the whole screen and I need to reduce its…
-
1
votes1
answer60
viewsQ: How to calculate using onblur between 3 fields
I have three fields in a form. Putting the value in one, when leaving this field, lavascript should do the calculation and popular the other two each with a result: EX: Campo 1: Entro com o valor 10…
-
3
votes4
answers8807
viewsQ: How to convert a date variable to the Brazilian format within a view?
Within a index.blade.php have a variable: <td>{{$ordemjoin->dataplanejamento}}</td> In the listing comes the date in the format English. How do I put in the format Brazilian?…
-
1
votes1
answer1475
viewsQ: How do I pass an array of data to a readable view?
How I pass a result from a select to a view? public function index() { $equipams = DB::table('equipamentos') ->select('equipamentos.*', 'tipoequipamentos.descricaotipoequip',…
laravelasked Marcos Birro 353 -
1
votes1
answer634
viewsQ: Load a Combobox with Selected Value
I need to edit an equipment register that has multiple combos and when you click edit load the select already with the selected selected. I thought Laravel automatically identified, but it doesn’t…
-
1
votes1
answer5387
viewsQ: How to use hasmany relationship in Laravel 5.2?
I have 3 tables of funcionário, apontamentos and horastrabalhadas. My relationship is hasmany 1 employee has several apontamentos. When I show the result with a dd() comes the employee data twice…