Questions tagged as 'laravel-5'

0
answers

initial SQL to list clients (PF and PJ). How to migrate a pure SQL Query to Eloquent from Laravel?

I set up an initial SQL to pull the data. It is working in pure SQL. I need to migrate this code to Laravel's eloquent pattern. Can someone help me? Thank you! Here is the sample SQL: Code: SELECT c.cod_cliente, p.cpf, p.nome, ct_m...
asked by 29.08.2018 / 16:56
1
answer

How to not pass the ID of an element by the laravel URL

This is my route Route :: get ('companies / delete / {notice}', 'CompanyController @ delete'); this is the button action This is my role in controlling What happens if I pass this url right into the browser localhost: 8000 / bus...
asked by 23.08.2018 / 02:42
0
answers

Broken picture in laravel 5.6 [homestead]

Uploaded to my application an image when using php artisan serves, Today I'm using the homestead, when I went to look at the application it barred my url and it does not let it be displayed. <img src="/storage/avatars/{{ Auth::user()->im...
asked by 29.08.2018 / 23:59
2
answers

Custom Login Laravel [duplicate]

I'm trying to log in to Laravel 5.5, I can authenticate the user, but when I go to another page it loses the reference of the authenticated user and redirects to the login screen again. My LoginController class: public function attemp...
asked by 03.08.2018 / 15:03
0
answers

Problems with Stored Procedures in Laravel 5.6?

I am making a select in a procedure , but I can not page because the result returns array : DB::select('EXEC PR_MONITORAMENTO @FUNCAO="S2", @ID_CD_INTERNACAO='.$ID_INTERNACAO.', @ID_CD_CONVENIO='.$ID_CONVENIO.',@NM...
asked by 30.07.2018 / 16:27
1
answer

Problems loading jquery into laravel

Good afternoon, I'm not able to load jquery in my laravel, I'm linking the folders correctly: <script src="{{ asset('js/jquery/jquery-ui.js') }}" defer></script> <script src="{{ asset('js/jquery/external/jquery/jquery.js') }}" d...
asked by 31.07.2018 / 17:15
1
answer

Laravel - make DB :: table () without using Join

I'm moving with laravel and I'm learning object orientation and wanted to do a select without using the join but as object oriented and I know I'm not getting it. As I'm accustomed to using: $results = DB::select("SELECT u.foto, u.Ninck,o.I...
asked by 12.07.2018 / 21:12
1
answer

How to pass an array by ajax to the controller?

I have an ajax that sends data from my selects to my controler and from there I do a check and query, so far everything is working perfectly. The problem is that the last select that I send is an array, since it's a select multiple, and I'm not...
asked by 12.07.2018 / 19:19
0
answers

Search ajax with laravel 5.6 and jquery [closed]

I'm having trouble running a ajax search with laravel, it follows the ajax code of my view: $(document).ready(function () { $('#enviarForm').click(function (e) { e.preventDefault(); var form = $('#filtro').serialize(); $.ajaxS...
asked by 04.07.2018 / 18:12
0
answers

Center return message API - Laravel 5.6

Good night everyone, Well, I'm a few days away looking for an alternative or better practice, but without success, I would like your opinion. I'm developing an API in Laravel 5.6, and I would like to know a better practice for returning th...
asked by 27.06.2018 / 03:09