Posts by Marcelo • 769 points
69 posts
-
0
votes0
answers477
viewsQ: Error Method save does not exist in Laravel
Good afternoon guys. I have an application that uses Polymorphic Relations according to Laravel’s doc. https://laravel.com/docs/5.4/eloquent-relationships#polymorphic-Relations I have the error…
-
0
votes1
answer248
viewsQ: I can access site only by ip
I hosted an application on Digitalocean but I can only access it via IP. I changed the DNS servers yesterday afternoon. What can be?
-
4
votes2
answers2451
viewsQ: Change storage location in Laravel 5.4
The current storage location of the Laravel is /Laravel/Storage/app/public. How do I change to /Laravel/public. I tried to edit filesystems.php but was unsuccessful: Controller store function:…
-
2
votes3
answers145
viewsA: Error in simple search in Laravel
I was able to solve the problem by changing from first() to get() in the method: public function search(Request $request) { $palavraChave = $request->input('palavraChave'); $clientes =…
-
0
votes3
answers145
viewsQ: Error in simple search in Laravel
I’m trying to perform a simple search. By putting dd($clientes) in the search method it is returning the search result correctly, but when returning to the view of the error: Trying to get Property…
-
2
votes1
answer1335
viewsQ: View in select database attributes and edit with Laravel
I was able to include the attributes through an auxiliary table by this question: Save multiple attributes to the same object in Laravel It would now need that what was set in this auxiliary table…
-
4
votes1
answer1794
viewsQ: Save multiple attributes to the same object in Laravel
I have an immovable table other of attributes and created an immovel_attribute table since an immovable can have several attributes. I created the models Immovel and Attribute, need to create a…
-
1
votes1
answer182
viewsQ: Combobox with yes and no on the Laravel
I have a combobox that has the values yes and no. He is bringing the value not put in the bank but the edit form does not appear the other option that in the case would be yes. How do I make the…
-
1
votes1
answer1487
viewsQ: Return select field value in Laravel
How do I return the value that is in the database of a select field and continue showing the other options to edit: <div class="form-group"> <label>Tipo de imóvel</label>…
-
2
votes1
answer7703
viewsQ: Call method by form action
Is it possible to call a method via post by the form action? How? <?php class Produto { public function insere() { $nome = $_POST['nome']; $descricao = $_POST['descricao']; $preco =…
-
2
votes2
answers9661
viewsQ: CRUD with MVC and DAO in PHP
I’m starting with programming and I’m doing a CRUD with MVC and DAO. I would like to know if the form I am doing is correct, what I could improve and how I call the insertion method of…
-
3
votes3
answers357
viewsQ: Data bank without foreign key in Laravel
I attended a class where a stock system is created in Laravel where there is the product and the category. But there is no foreign key, only one column categoria_id. How is this relationship done?…
-
1
votes1
answer978
viewsQ: Laravel update type error
Is appearing the error: Type error: Argument 1 passed to Illuminate Database Eloquent Model::update() must be of the type array, Object Given, called in…
-
1
votes1
answer745
viewsQ: Problem Routes Laravel
I’m using the Laravel 5.3 and in the course I’m doing asks for on the Routes put the following line: Route::get('/produtos', 'ProdutoController@lista'); But putting it that way is a mistake:…
-
0
votes1
answer110
viewsQ: Error in removing c++
Good evening, you guys, I am unable to make the remove function work. Find the number but do not delete the vector value. #include <cstdlib> #include <iostream> #include <string.h>…
-
-3
votes1
answer250
viewsQ: Update system in Java Web
Good afternoon, everyone, I have the idea of making a system with Java Web, but I’m starting to learn java now. A friend told me about doing with Java Web and told me to do in Python. The arguments…
-
3
votes2
answers553
viewsQ: Know how many ports are open in Java program
I have a program in Java to know how many doors are open but I’m not sure where to put the method to count the doors. I can create a method to count open doors within the class Porta? package…
-
0
votes0
answers43
viewsQ: Parameter error in mysqli_query (does not accept connection parameter)
Good afternoon, everyone I’m having an error: Warning: Notice: Undefined variable: mysqli in /var/www/html/crudgenerico/classes/Conexao.class.php on line 59 Warning: mysqli_query() expects Parameter…
-
1
votes1
answer220
viewsQ: Directory error with spl_autoload_register
I’m having an error using the autoloader. Autoloader.php file: <?php function carregarClasses($classe) { require_once __DIR__ . '/' . $classe . '.php'; } spl_autoload_register('carregarClasses');…