Posts by Lucas Antonio • 568 points
70 posts
-
-1
votes1
answer98
viewsA: col-Md-6 is not falling in mobile
Bootstrap grid rules are as follows: Extra small <576px: Col-1 to Col-12, Small 540px: Col-Sm-1 to Col-Sm-12, Medium 768px: Col-Md-1 to Col-Md-12, Large 992px: Col-lg-1 to Col-lg-12, Extra Large…
-
0
votes1
answer33
viewsA: Phpmailer - does not work
You did almost right, I only miss the SMTP port that Phpmailer needs to communicate with sending server... I checked your code after sending, so I will score one thing for you to do, do not declare…
-
0
votes1
answer32
viewsA: Template and htacess Wordpress page
You need to request a GET in the functions of your theme and validate in the database if it matches this id, the title you pass is optional because you don’t need to pass, with PHP will get the id…
-
1
votes1
answer101
viewsA: What is the best way to store files in a webapplication?
In the IC I am using local, and saved in the bank next to a record the name of the file or location and then call the file where I need... Bank example id, name, profile, age, ... in the Pefil…
-
0
votes1
answer275
viewsA: Laravel Dynamic Fields - Forms
With Blade from Laravel you can use @foreach to list in select as follows: <select name='categoria'> <option value="" disable>Selecione uma categoria</option> @foreach($categoria…
-
0
votes1
answer540
viewsA: Testing the routes in Laravel
First structure the controller as follows, listing, create, delete and change, then with each function in the controller you will already know that you need 2 more functions in each registration…
-
0
votes1
answer266
viewsA: call authenticated Laravel api
I was with this problem a few days ago I solved as follows... url:'http://localhost/testeEmprego/public/api/filmes?api_token='+Token_api The variable Token_Api step into her token via front-end and…
-
0
votes1
answer108
viewsA: How to create ACL with External Database in Laravel?
Does a root controller and directs the logged in user to it and makes the default ACL creating the tables as ACL uses, will work perfectly, just need to check if the database user can create tables.…
-
0
votes1
answer17
viewsA: How to generate dynamic urls
You can do this when registering example: public function cadastrar(Request $request) { $request->validate([ $request->titulo => 'required', ... ]); Model::create([ 'table_titulo' =>…
-
-1
votes2
answers340
viewsA: After the user logs out, he leaves, but if you click the back arrow of the browser he accesses again
Your code is right, but in loginController you need to validate if authentication exists, as you destroyed it will not be logged in using the Auth::check() you validate whether it is logged in or…
-
0
votes1
answer94
viewsA: I’m having trouble saving input data to a mysql table via PHP
Follow some corrections I made and test to confirm if please test! class User{ private $pdo; //privado para usar somente nessa class public $msg; //publico para usar em qualquer lugar public…
-
0
votes1
answer25
viewsA: Dropdown Relating Another in Loop
The loop will only work if you have index before the data as follows an array example. var dados = [ 0 => [ 'nome' => 'teste', 'sobrenome' => 'teste1' ], 1 => [ 'nome' => 'teste2',…
-
0
votes1
answer326
viewsA: Problems with external SQL Server connection in PHP
Tries: new PDO("sqlsrv:server={$server};Database={$database}" $user, $pass);
-
0
votes1
answer54
viewsA: Form redirecting
It’s moving why you declared an action if you have using php on the same page only take the action if not on the other page if all goes well put a header('location: destino.php'); NOTE: Change…
-
1
votes1
answer168
viewsA: UUID in Arabic and eloquent
In the Laravel documentation it asks you to declare (string) after var equals as follows in the example: $uuid = (string) Str::uuid(); dd($uuid); // return "891fcc8e-018e-43ed-b2cf-f8f98bca70d5"…
-
0
votes2
answers130
viewsA: Transform String into Array of Elements
How do you want the array ? can try using split; example: var string = 'oi'; var array = string.split(''); or if you have a comma just use the comma in the split and it does an array of the string.…
-
-1
votes1
answer772
viewsQ: Laravel - Hasone 5.8
I have no problems with registering related data in Hasone I have doubt about registering 2 hasOne data... I know that to register two hasOne data is as follows example: $users = User::create([…
-
-2
votes1
answer42
viewsQ: NPM Advance-element/Moment-with-locales.min.js
I’m having trouble at Laravel-mix with this WARNING Compiled with 1 warnings 20:53:09 This relative module was not found: ./locale in .…
npmasked Lucas Antonio 568 -
-1
votes3
answers4332
viewsA: Passing HTML Parameters to Javascript
Good in java script is the following, you do this function that will take the content of html, with innerHtml you will write in html. <script> function getName(){ var content =…
-
0
votes3
answers404
viewsA: Category and Subcategory Sum with PHP and MYSQL
Sum the query with SUM Example: mysql_query("SELECT SUM(Value) as total FROM Codes"); or in php: $result += $soma;