Posts by Romulo Sousa • 569 points
29 posts
-
2
votes1
answer75
viewsQ: Reversing the commit
Talk guys, I have a problem in my repository. I want to revert the repository to a previous commit, in which case it would be the commit that’s in red. commit…
-
0
votes0
answers48
viewsQ: Allow external connection to the database
Guys I have a problem accessing a database that is in a Virtual Machine. I have a machine A that has an application Laravel all configured and the project installed, and has another machine B where…
-
2
votes3
answers541
viewsQ: Hide and Show child element via checkbox
I have an HTML structure of a <table> where I have a <tr> with two <td> with the following structure: <tr> <td class="w-25 text-nowrap"> <label><input…
-
2
votes1
answer59
viewsA: Laravel Seed, relating models from a JSON
private function fillDealerships(array $files) { foreach ($files as $file) { $data = $this->getFileContent($file); $filename = $file['filename']; /** @var $brand Brand */ $brand =…
-
1
votes1
answer59
viewsQ: Laravel Seed, relating models from a JSON
I’m doing a Seed from a Json file, I can read and populate the data, but at the time of linking the relationship between Dealership and Brands I can’t. How would I do that? With the $filename =…
-
2
votes1
answer402
viewsQ: Accessing objects from a JSON
I have the following file .json, in case I want to access initial data, called suzuki at the beginning of json, how do I get this information? That one .json is responsible for making the data Seed…
-
0
votes1
answer277
viewsA: Synchronizing Permissions with Spatie Permissions
protected function syncPermissions(Request $request, Model $model) { $model->brands()->sync($request->input('brands')); $model->dealerships()->sync($request->input('dealerships'));…
-
0
votes1
answer277
viewsQ: Synchronizing Permissions with Spatie Permissions
I need a little help, I need to synchronize permissions when creating and editing a user within the Administrator. I’m using the Laravel Spartie Permission package, which I need to synchronize roles…
-
4
votes2
answers192
viewsQ: Add and Remove Field through Checkbox
I have a form where I select colors for the page, and in it there is a checkbox with the option of usar padrão do site, the moment I click on this checkbox it removes the field, but when I uncheck…
-
-1
votes1
answer582
viewsQ: Enable form fields with JS with Radio Button
I’m starting with Javascript and have a little problem. I have an HTML form where I have a field radio where I have two options, Texto and Página. When I click on the option Texto he carries a field…
-
2
votes1
answer972
viewsQ: Laravel: Pass parameters on routes
I am developing a CMS system, where I choose the component that the user that on your site page. In this line of code I load the data of the components, this data is coming from a file…
-
0
votes1
answer345
viewsA: Problem generating ssh key in git lab
Removes the Usuario@Usuario-PCat the end, because it does not belong to ssh key. Follow the steps of documentation:…
-
2
votes2
answers429
viewsA: Classes of validation Laravel
You can create a request class that will be responsible for this, how? Follow the Laravel documentation link: https://laravel.com/docs/5.7/validation#form-request-validation Example: In your…
-
0
votes1
answer77
viewsQ: Successful alert for the user with Vue
I have a session in my application, where the user disables and activates documents, at the time it activates or disables wanted to show a successful Alert in the Vue.js standard, but I don’t know…
vue.jsasked Romulo Sousa 569 -
0
votes2
answers2791
viewsA: How to pass Array values in Postman
Passing a campo[] but the values for each field you need, in my case the permissions.…
-
-1
votes2
answers2791
viewsQ: How to pass Array values in Postman
I am developing an API, and one of the modules is the ACL(access control list) in the Laravel Framework. I came to a problem that I haven’t found plausible solutions yet, which is like testing…
-
1
votes1
answer379
viewsQ: Structuring HTML to PDF
I am trying to create a template for PDF generation, which will serve for order label. I wanted to structure everything in place. As it is PDF, I cannot use Boostrap or any other facilitator, only…
-
4
votes1
answer1269
viewsQ: Regex for repeat numbers on CNPJ
I have the following regular expression: regex:/^\d{2}\.\d{3}\.\d{3}\/\d{4}\\-\d{2}$/ I can validate for that, but not for repeated numbers. I want to apply within this regex, a form that does not…
-
-1
votes2
answers461
viewsQ: Generating PDF with Laravel
I’m trying to implement this pdf lib for my Laravel project: https://tcpdf.org/. Since I’m having problems in the implementation, because its documentation is not very clear with the method I need…
-
4
votes1
answer10088
viewsQ: How do I update the master branch from another branch?
I’m working on a branch calling for start/admin/status I want to bring all the changes that are in branch master because the project no longer has certain packages, how do I do this?…
gitasked Romulo Sousa 569 -
0
votes0
answers98
viewsQ: Laravel Spatie Model Status
I need help implementing a request status. I am on a project that in the order session, I detail a specific request. Inside it will have a selectto select the STATUSof the request, if it was pago,…
-
0
votes1
answer102
viewsQ: Relationship MORPH
I’m modifying a table database, in case it is to be made a relationship Morph of the fields that are according to the image. I’m wearing the Laravel 5.6 How do I make this relationship within…
-
0
votes1
answer288
viewsQ: Responsiveness Bootstrap
In this loan simulator, I need it to be very responsive, but when I reduce his screen, his select’s don’t get below each other. This is a template.…
-
0
votes1
answer48
viewsQ: I rename the folder, but when I git push the error
I want a help, I am learning LARAVEL,in the section of product registration was giving error, the folder name was wrong, was PRODUCTS and I changed to PRODUCTS until then no problem. But when I went…
-
0
votes1
answer211
viewsQ: Problem with date.Timezone php.ini
I’m testing an instagram bot on my local machine. But when I try to start modifying the date.timezone is thus passing the parameter date.timezone = America/Sao_Paulo within the php.ini, which is one…
-
0
votes0
answers19
viewsQ: Mysqlworkbench - tabs
Hello everyone, I have a small problem. In the left tab, the banks that have been created no longer appear. I was wondering if someone could help me restore this window.…
mysqlasked Romulo Sousa 569 -
0
votes1
answer1315
viewsQ: 404 not found - phpmyadmin/Ubuntu
I am using Ubuntu and installed LAMP correctly. I open PHP applications on localhost quietly, but when I try to access the localhost/phpmyadmin he shows me a erro 404 Not Found. I’ve seen several…
-
1
votes0
answers292
viewsQ: SQLSERVER windows authentication
I’m trying to connect to SQLSERVER 2012 with windows authentication and it shows me this error, I have two servers created, tested both but it didn’t work before when I used it connected. `TITLE:…
sql-serverasked Romulo Sousa 569 -
16
votes6
answers12128
viewsQ: Error typing GIT PUSH
I’m on my machine and want to upload the files on my local machine to my repository on github with.. I’ve already executed the commands git add, git commit and all that remains is to raise them.…