Laravel - is speaking that the variable n exists even if it exists

0

I'm new to laravel. I made a query to the bank and such and assign a variable a value but when I try to inject it it says it does not exist
 @php                                                             $ results = DB :: select (SELECT Estado , Cidade , Cpf , NascDia , NascMes , NascAno , foto , nome , sobrenome console , ninck , game FROM email WHERE has = '$ has' ");

                                                     $nomeU=1;
                                                    @endphp
 @foreach($results as $row)     
                                                        @php
                                                            $estado=$row->Estado;
                                                            $cidade=$row->Cidade;
                                                            $cpf=$row->Cpf;
                                                            $dia=$row->NascDia;
                                                            $mes=$row->NascMes;
                                                            $ano=$row->NascAno;
                                                            $foto=$row->foto;
                                                            $nomeU=$row->nome;
                                                            $sobreU=$row->sobrenome;
                                                            $console=$row->console;
                                                            $game=$row->game;
                                                            $nick=$row->ninck;
                                                            $email=$row->email;
                                                        @endphp

{{$nomeU}}

    
asked by anonymous 05.07.2018 / 18:41

0 answers