Posts by Paulo Felipe Martins • 176 points
20 posts
-
0
votes1
answer53
viewsA: How to manipulate SVG to make it responsive
Eai man, in case you can’t edit the SVG importing it as an image. You have to import the SVG code itself, taking your example from SVG, I downloaded it and opened one the VSC, took the xml from it…
cssanswered Paulo Felipe Martins 176 -
1
votes2
answers76
viewsA: Change the text field by selecting a dropdown option
I believe that’s what you want, I took your code and I edited it as needed, I hope I’ve helped. In the code below I create a function to hide the inputs and another function that will select which…
jqueryanswered Paulo Felipe Martins 176 -
0
votes2
answers320
viewsA: Two foreach in a select
You can try using the method in_array, to check if the data already exists inside the array and thereby deny that the data enters: foreach ($risco_ergonomico as $riscoErgonomico) { foreach ($risco_e…
-
1
votes2
answers745
viewsA: Pass more than one parameter in a request in Angular for Webapi
Look, if what you want is just to put the page numbers and set amount by it, there is a very simple option to do this, which is the Angular Datatables, do on the arm, you will spend a lot of time…
-
1
votes2
answers745
viewsA: Pass more than one parameter in a request in Angular for Webapi
You can create a formData and pass it all to api, like this: getListaUsuariosPaginado(): Observable<Usuario[]> { const formData = new FormData(); formData.append('pagina', pagina);…
-
0
votes3
answers298
viewsA: Create table in Mysql using Laravel
It may be that the Mysql "innodb" option is disabled. To check if it is active enter the right of mysql bin open my.ini file, look for the line "Skip-innodb" see if it is commented. Unscrew the line…
-
2
votes2
answers990
viewsA: Laravel Restful Api - JSON errors instead of HTML
Eai Luan, you can treat this directly in your controller method, like this: try { //Código aqui, abaixo a variavel $data retorna o valor que vc quer consumir. return response()->json([ 'info'…
-
0
votes1
answer177
viewsA: Data were not changed in the database - Standard 5.7 eloquent
Eai Claudio blz? , next guy, in his method update, you inform that is passing an ID, and with this ID, you are looking for the Class. But on your route you are not passing an ID to the method, you…
-
0
votes2
answers345
viewsA: JSON with array within IONIC 3
Eai man, next. If you want to get the data straight from the API, do so: Creates a global variable like this: http: Http; Then capture the API data this way: var aula;…
-
1
votes3
answers653
viewsA: List 3 tables in Laravel
Talk to me, man. Next, if what you are wanting is only the data from the companies when you pull the contract data, you can create an appends (Attribute) within the contracts class, where it will…
-
0
votes1
answer100
viewsA: Hostlistener to listen to a variable
You can do it like this: <select class="intenção-retângulo" (change)="onClick($event.target.value)"> <option></option> </select> It will call the method by clicking the…
-
1
votes1
answer1182
viewsA: Angular routes
If you prefer, you can do it directly in ng module.: const appRoutes: Routes = [ { path: 'registrar', component: RegistrarComponent }, ]; Imports: imports: [ RouterModule.forRoot( appRoutes, {…
-
-3
votes2
answers455
viewsA: Laravel - How to call several methods passing the same route?
Route::get('/psicologo/editar/{psi_codigo}','PsicologoControlador@edit'); Route::get('/psicologo/editar/','ControladorMunicipioUf@ListaUfEditar');
laravelanswered Paulo Felipe Martins 176 -
0
votes2
answers105
viewsA: Problems with return api in Laravel
Return the data in json return response->json($data); In your angular service do more the less so: public getOne(id: number): Observable<any> { return…
laravelanswered Paulo Felipe Martins 176 -
-2
votes1
answer52
viewsA: LARAVEL: Checking for SQL returns
if($cliente->isNotEmpty()) {} Or just like this if($client){}
-
0
votes1
answer229
viewsA: Group arrays with same Id
Try it this way: $arraySku = array(); $indice = 0; foreach ($skuProduto as $skuProduto ) { foreach ($skuProduto as $key => $variacao){ $arraySku[$indice]['id] = $key; $variacoes[] = [ "name"…
-
0
votes2
answers122
viewsA: Laravel query two tables, not showing if id are equal
Try it this way: $result = DB::table('Students')->whereNotIn('id', Function($q){ $q->select('student_id')->from('student_schedules'); })->get();
-
0
votes1
answer672
viewsA: I can’t open project in Laravel
Following for what you reported: Delete the database; Restart the XAMP; Create the database in hand again (Make sure the name has been typed correctly); After that run the command "php Artisan…
-
0
votes1
answer137
viewsA: PHP - Sort object by date without key
Try to do it this way: //In Ascending Order Collect($array)->sortBy('date'); //Or in descending order Collect($array)->sortByDesc('date');
-
0
votes1
answer660
viewsQ: Angular - Take data from a json Object and put into a table together with another Object
Hi, I was wondering if someone could help me, today I have a table that receives data from a Komponent(Medias), I have another Component that is playlists, on playlists I associate the medias to a…