Posts by Luciano Bezerra • 127 points
8 posts
-
1
votes1
answer259
viewsA: Control virtual store stock
My view of the context: a table for products; A table for stock handling. In the drive table you would control the inputs and exits of the products. Putting everything on a table will only generate…
-
0
votes2
answers171
viewsA: Doubt , how to resolve this conflict?
Tip: Use the required html property for validations. It will greatly decrease this code, increasing readability. <input type="text" required="required" name="name" /> It is possible to style…
javascriptanswered Luciano Bezerra 127 -
2
votes2
answers5961
viewsA: How to modify the default Datatables + Bootstrap layout
Hello! There is internationalization for this plugin, look here: https://cdn.datatables.net/plug-ins/1.10.11/i18n/
-
1
votes0
answers31
viewsQ: Active Jdbc Association not work
Hello. I have two classes: User and Competition. I need to make a relationship between the two, as below: public class User extends Model{ } @Table(value = "competencias") @BelongsTo(foreignKeyName…
-
2
votes1
answer69
viewsQ: Activejdbc Compound Validation
I need to do a composite validation on the Activejdbc ORM and I’m not finding anything in the documentation. Something like, extends from the Validatoradapter class, but I’m not finding material to…
-
0
votes2
answers251
viewsA: Update many fields of a model
Solved like this: public function update(ProdutoRequest $request, $id){ $produto = Produto::find($id)->update($request->all()); return redirect('produtos'); } gmsantos, Thanks for the…
-
0
votes2
answers251
viewsQ: Update many fields of a model
Use the method below to update a table from the form: public function postEdit(){ $produto = Produto::find(Input::get('id')); $produto->nome = Input::get('nome'); $produto->descricao =…
-
2
votes1
answer849
viewsQ: Laravel - Return HTML or JSON in the same Method
I’m starting with Laravel, seeing from Rails, where to return a JSON I just put . json in the url, the return processing is obviously in the Controller. My question is how to do something like…