Posts by Joan Marcos • 452 points
17 posts
-
4
votes3
answers850
viewsA: Taking value from an input
This occurs because that id is a unique reference to an element, so it only considers the first element created, but you can use class which can be used for several elements. <input…
jqueryanswered Joan Marcos 452 -
2
votes2
answers527
viewsA: Fill in input according to other input response
In fact it is quite quiet to carry out such barbarism, come on the/ Ajax $(document).on("change", "#cliente", function () { var value = $(this).val(); var _token = $('input[name="_token"]').val();…
-
1
votes1
answer205
viewsA: Intermediate relationship between two Laravel tables
Kasio, it’s actually quite simple to do the relationships in the Aravel, so let’s go. The relationship that you want and that makes all logical sense to your problem is Many to Many N:M -> Many…
-
2
votes1
answer257
viewsA: Validations with Laravel - Input and Option
Good afternoon man, the best way to validate yourself seriously with the Rule::Requiredif, it is of the Rule class of the Laravel for validation in the client part. //Não esquece os namespaces use…
-
1
votes2
answers433
viewsA: How do I recover and calculate 2 numbers via POST in Controller in Laravel?
Good morning friend, it is very simple to work with Alavel, I recommend very much that you learn the framework reading the documentation. 1º- Your form is set in the wrong way. This would be the…
-
2
votes1
answer79
viewsA: Javascript condition
Hello, the error is quite simple, you are using the assignment operator =, the correct serious the comparison operator ==. Documentation for more information on operators. var n1 = 4; var sobra =…
-
1
votes1
answer58
viewsA: Build query in Laravel
You can do a simple check on the request to know the value being returned if(($request->input('weekday') == '') && ($request->input('id') == '')) { //Se for vazio seta para 303…
laravelanswered Joan Marcos 452 -
4
votes2
answers66
viewsA: I’m having problems with Mysql, I don’t know how to get media
Averages : Select codigo, AVG(valor) FROM Tabela Calculate the mean with target values: Select codigo, AVG(DISTINCT valor) FROM Tabela Calculates the average and sorts the result by the…
mysqlanswered Joan Marcos 452 -
0
votes1
answer227
viewsQ: Query Mysql three tables
I am trying to make a query in the MYSQL database, but the query is not getting back what I wanted. I want to make a query where return all modules and modules that the company has with the clause…
-
1
votes1
answer941
viewsQ: Jquery-Ajax Orange Query 5.5
I can’t get the ajax consult on Laravel5.5. Query form: <form action="ConsultaEmpresa" method="get" name="FormConsultaEmpresa" id="FormConsultaEmpresa"> {{ csrf_field() }} <input…
-
1
votes1
answer1001
viewsQ: Sending two or more request by form with ajax
Good afternoon guys, I want to know how I can send more than one form request to my Controller to do the relationship in the bank ? I have a relationship N:M with User and Group, only when I give…
-
0
votes2
answers718
viewsQ: User does not authenticate Auth
I can’t get the user authenticated, so he enters my route with middleware auth... I can log in but I can’t get the user logged in, for example I can’t enter any route with middleware auth and nen…
-
2
votes1
answer102
viewsQ: Insertion in the bank with relationship N : M
I need to insert users into my database MySQL already with the relationship N:M, but I don’t know how to do it. Migrate: Schema::create('usuarios', function (Blueprint $table) {…
-
0
votes1
answer529
viewsQ: View password with hash in database, decoded
I’m saving the passwords in the hashed database, and now I want to view it in the view, because when I get the data in the database it still gets hashed when I’m going to display it. Senha:…
-
0
votes1
answer2525
viewsQ: Middleware Laravel Group Authentication
save guys, I want to know how to project my admin route so that the user does not have access to this route but they both have to be authenticated. My routes Route::group(['middleware' =>…
-
1
votes1
answer1213
viewsQ: Password registration with Hash in Laravel bank
Look guys I’m not able to register the password with the hash in the bank, I can register all data but the password is not encrypted public function CadastroSalvar (Request $request) {…
-
0
votes2
answers1965
viewsQ: Laravel php auth system
How to authenticate the user login and password in Windows, I’ve been trying for a while but I can’t. Routes Route::get('/login',['uses' => 'loginController@login','as' => 'login']);…