Posts by Natan Melo • 656 points
46 posts
-
0
votes1
answer387
viewsQ: Problems with table linkage in the Standard
When I type php artisan migrate it generates this error: Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table `blog`.`produtos` (errno: 150 "Foreign key…
-
0
votes1
answer231
viewsQ: Crud Ajax Laravel 5.*
I have a little problem. I’m doing a crud with Ajax + Laravel. "Everything" is working, more than when I update a data, it also registers. Well see how I’m doing. I have a Bhutan that I have an id…
-
0
votes2
answers978
viewsA: Check if user name is unique in real time
You could involve in a method this check, and make an event in the click of a Comment calling Ajax to check if there is a user and return a result as the result would do something; Let’s assume you…
-
1
votes3
answers2249
viewsA: Error: Laravel ao Enviar email
MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 [email protected] MAIL_PASSWORD=xxxx MAIL_ENCRYPTION=ssl After you have to go in your gmail and enable for third party applications…
-
0
votes3
answers801
viewsA: How to concatenate an object with a variable to be dynamic?
user = {name: 'Alexandre', email: '[email protected]'} var attr = 'user.name'; var attr2 = 'user.email'; console.log(attr , attr2) retorna => "Alexandre"…
-
1
votes1
answer1236
viewsA: Can I use select in Relationship on the Windows?
You’ve tried it this way? return ModelPai::with(array('nomeFuncaoNaModel1'=>function($query){ $query->select('Campo1_da_tabela1');…
-
1
votes1
answer2006
viewsQ: How to get all users currently logged in to Laravel 5.4
I need to loop all users who are currently logged in to the system. How could I do that? I know with auth()->check() we can know if a user is logged in. More I wanted to know of everyone who is…
-
2
votes3
answers1047
viewsA: Laravel - parse_url() expects Parameter 1 to be string, array Given
There are several ways to save in the bank. One of them can be like this too. use App\namespace\Produto; public function cadastrar(Request $request) { $dados = new Produto; $dados->produto =…
laravelanswered Natan Melo 656 -
1
votes2
answers644
viewsA: Real-Time How it works. Because I’m having problems with my Laravel 5.4 tests
Okay. I’m going to show you here how I solved this problem that I was having. Only instead of notifying the frontend to Backend, I did the opposite, from Backend to frontend. Soon I changed the…
-
1
votes2
answers644
viewsQ: Real-Time How it works. Because I’m having problems with my Laravel 5.4 tests
What do I need? I need when a user in the frontend sends a message to the system and the system (Dashboard backend) to receive a real-time notification that is the message just created. I’m doing it…
-
1
votes1
answer102
viewsQ: The images do not appear in the Mail inbox. Laravel 5.4
There is a contact form where the user sends a message to the system and the system automatically sends a message thanking his contact and along with the message I send the most viewed articles.…
-
2
votes1
answer1821
viewsQ: How to send an email after user registration has been done? Laravel 5.4
I need that when a user is registered he takes the value of the email field and passes to the function $message->to($request->email) to send the email to the registered user. See how I am…
-
0
votes1
answer246
viewsA: How to make paging in a table that this related Laravel 5.4
Well I found an easier way to make a pagination with related tables. See: 'departamento' => Departamento::find($id)->postagems()->paginate($this->departamento) That alone solves the…
-
1
votes1
answer246
viewsQ: How to make paging in a table that this related Laravel 5.4
There is a 2 tables and a pivot where she makes the relationship ManyToMany among the 2 tables. A table is called Postagems and the other table is called Departamentos, so I’m trying to do a related…
-
0
votes1
answer66
viewsQ: I’m having a problem where I really don’t know how to do an event that hears an action on the Laravel
I have a slide show of images where the images registered in the database appear. The table is called events. In this table there is a field called end date, which would refer to the end of the…
-
2
votes2
answers1485
viewsQ: I don’t understand why Empty says the variable is not empty
There is a module of Members, where members of a church are registered. By this registration will be shown on the main page the day’s birthday on a jQuery slide. But when he doesn’t have a birthday…
-
1
votes1
answer787
viewsQ: Insert Many To Many Laravel 5.4
I have a situation as follows. I have 4 user tables -> department -> categoria_department -> category -> posts Where in my view I have a select where it shows a data relation on ex…
-
1
votes1
answer156
viewsQ: Belongstomany Laravel 5.4 Class 'Department::class' not found
I have several 4 tables Starting with Users -> Departments -> categoria_departamento -> category -> posts; Where the categoria_department table it serves as pivot for relation Many to…
-
1
votes1
answer4875
viewsQ: How to make specific sql queries using Laravel?
I need to make an appointment at the bank to see the birthday of the current month. A consultation of this type, see: SELECT * FROM membros WHERE day(dataNasc) = day(CURRENT_DATE) and…
-
0
votes2
answers142
viewsA: Css does not change color to transparent
To resolve this issue, on the page where the menu is incorporated, apply the transparence by calling Chasse for the menu. see: <style> .navigation{ background:rgba(243, 241, 245, 0.04)…
-
1
votes2
answers142
viewsQ: Css does not change color to transparent
I have a menu of a site where specifying the element I change to a transparent color but it does not change, even putting as ! Port in front of the property. Behold: In this menu it is like this in…
-
2
votes1
answer678
viewsA: How to open the modal bootstrap form after an Laravel 5.4 validation error
Well, sorry for my lack of attention, but I don’t really have JS skills. Then I repaired the code, I saw that it returns a session with a variable Errors. So I simply gave an if checking if there…
-
1
votes1
answer678
viewsQ: How to open the modal bootstrap form after an Laravel 5.4 validation error
I have a contact form in modal bootstrap. I have the validations where they are validating correctly. Now my question is: How do I stop when I do not pass the validation it return the message in…
-
2
votes1
answer26
viewsQ: Larval Relationsships 5.4 accessing search data with?
I have a relationship of One To Many, wanted to know how to access data from the two tables. Behold: Album::with('imagemAlbums')->where('departamento_id', $id)->get(); Return of dd() now in my…
-
2
votes1
answer46
viewsQ: Larval Relationsships 5.4
I have 3 tables,[Users -> Departments -> Posts] where the Users table has many Departments that Departments has many Posts. My question is: How do I relate the 3 tables to the with() method…
-
2
votes1
answer49
viewsQ: Form value does not return in the Collective
The form in the edção part, does not show the value coming from the database. All other form fields are returning the value taken in the database. See how I’m doing: <div class="col-md-3"> {!!…
-
1
votes1
answer162
viewsQ: Relationships Laravel Onetoone?
I’m doing some exercises, but there is one but I can’t understand why it’s not working when I do it with another name in the method. I have a method in the Model Location, where he does the…
-
1
votes1
answer48
viewsQ: Problems with {!! Form::model()!! }
I have a form where I add it to the create.blade.php page and Edit.blade.php page more when I will specify the element does not appear the tag <form></form> More when I remove the…
-
0
votes1
answer382
viewsQ: How to make the CRUD by model in Laravel?
We can do in the controller the method save() the find($id) the update() and create(). How could I do in that Model had that accountability?…
-
0
votes1
answer228
viewsQ: How do I send a bank appointment to a View in the Laravel?
I have a model (table)called Member. I want to do the id count that exists in the bank. I have well managed to do it with Member::Count(?id'). It returns me all pretty the total id that I have on…
-
0
votes1
answer138
viewsA: Laravel environment with multi login
Route::group(array('prefix' => 'empresaTal', 'middleware' => 'auth'), function() { Route::get('login', array('as' => 'login.empresaTal', 'dashboard\AuthEmpresaTal@login')); }); I think…
-
0
votes1
answer290
viewsQ: How do I solve this problem of method create in Laravel
Well, I have a form that contains an html input of an image. When I send the form to Control, I do the image processing, taking his name and uploading to the image directory. More when I see in the…
-
1
votes1
answer369
viewsQ: Manual authentication of a table field in the Laravel Framework 5.3
I’m starting now with the Framewok Laravel 5.3., however quado crio with artisan o make:auth it automatically creates the views, model, and controllers concerning Login. Only I added a field to…
-
0
votes2
answers354
viewsQ: Mouse events (when passing an x element) Jquery
Well, I’m having trouble with mouseenter(). it only fires the event if I click, I need that when passing inside an element(div) it fires the event. Like I’m doing: $('#<?php echo…
-
3
votes2
answers76
viewsQ: overlapping tabs on foreach
I need the foreach to work properly : So that we have no doubt here this the normal code: <!-- Tab v2 --> <div class="tabs alternative"> <ul class="nav nav-tabs"> <li…
-
1
votes1
answer44
viewsQ: Carousel shows no photo
Well, I have a carousel where I pick up the "images" (actually it’s just the names of the images) in the database and I do a foreach on the carousel but the images don’t appear. When I display the…
-
0
votes1
answer156
viewsQ: Paging in Codeigniter with error Type: Error Message: Unsupported operand types
I have a function that takes all the values from the database and sends them to a view, then I’m making a pagination. Only when I put the $this->pagination->create_links() of the variable…
-
0
votes0
answers58
viewsQ: How do I make two references of a table in other 2 tables?
Well, I have 3 tables tbl_users tbl_article tbl_profile I need tbl_usuarios to be related to tbl_articles and tbl_perfil. How could it be done? Table tbl_usuarios:…
-
3
votes1
answer868
viewsQ: How to access a variable codeigniter array
I have trouble picking up values within an array variable in codeigniter help me understand how this works once and for all I searched the database that is sent to the view by an array: Controller…
-
6
votes1
answer117
viewsQ: The if parole is not obeying the rules
I have a problem here in my gallery, when I enter the menu and choose which image category I will choose. Ex: Praise Group (yes it is a religious site), it has to go in my controller and pick up the…
-
3
votes1
answer862
viewsQ: Error!!! You did not select the file to upload. Codeigniter
I have a problem uploading the image and registering it in my database. In my database I have a table called tbl_article where there is a when going to the image in question called artigo_image with…
-
4
votes1
answer44
viewsQ: Where’s the mistake I can’t see?
What happens in the jeans_status and jeans_opcao it works a beauty more in the first if It doesn’t work, it goes into the if without checking whether the imagem_status == 1 and the imagem_opcao ==…
-
-4
votes2
answers72
viewsQ: Because this HTML tag does not show the link, only when I shoot the style="display: None;"
I’m doing a tour in my administrative area, but it doesn’t work when I send it to the server. In the boy’s GIT project on the site where I downloaded it works perfectly The tag is this: <a…
htmlasked Natan Melo 656 -
0
votes1
answer37
viewsQ: How does the controller know it went to it without me passing the parameter in `echo open_form()`?
I have a code here that I’m studying as he does. See this view insira o código aqui<div class="animate form login_form"> <section class="login_content"> <?php echo form_open('',…
codeigniterasked Natan Melo 656 -
0
votes1
answer97
viewsQ: How do I make a variable become an object?
Model: public function gettoken() { $token = $this->db->get('token'); return $token->result(); Controller $this->load->model('Mod_login'); $get = $this->Mode_login->gettoken();…
-
0
votes1
answer80
viewsQ: How do I get expiration time on the recovery link?
I did a function in the fur codeigniter for password recovery and it’s all working, only I wanted it to expire the link has a x time/day. What logic to use in this situation?
codeigniterasked Natan Melo 656