Questions tagged as 'laravel'

1
answer

syntax error, unexpected end of file laravel

Well my query is because I read my code a thousand times and I do not know where the error is, I have a pure php app that I'm trying to integrate with laravel but I can not find the error of syntax error, unexpected end of file create...
asked by 09.07.2018 / 04:34
1
answer

How to do this with ORM Laravel

In my database I have the following tables: Document (idDoc, title, type) Project (idProject, name) DocumentProject (idDP, fk_Documento, fk_Proyecto) I need to know how to do this with the Laravel ORM in a single consultation. 1.-...
asked by 12.07.2018 / 18:18
1
answer

How to query Sql in eloquent laravel?

I have a query on MySQl: SELECT E.EXPE_varHR,E.EXPE_varDescripcion, T.TIPO_varDenominacion,T.TIPO_booSAP, (SELECT SUM(EXPE_intDiasTramite) FROM gen_expedientes EX INNER join gen_tipos TT on EX.TIPO_intId=TT.TIPO_intId WHERE EX.EXPE_varRaizH...
asked by 26.06.2018 / 15:20
1
answer

Confirm shipment Sweet Alert Laravel

I am trying to delete a record with double confirmation of sweet alert from a datatables, but when selecting one, it always sends me the id 1, no matter what the record is with the id 10, 20 or 30. What should be done? or what am I doing wrong ?...
asked by 23.06.2018 / 12:07
1
answer

How to send parameters by ajax using datatable in laravel?

JavaScript code: function activar_tabla_listasedes() { var codigo = 105147000738; $('#tablesedes').DataTable({ processing: true, serverSide: true, pageLength: 5, language: { "url":...
asked by 14.06.2018 / 16:22
3
answers

Laravel MySQL Check if there is a record

Could someone help me to correct my laravel code so that before inserting a new record, check if that record exists? (to avoid duplicates) that is, if there is a record equal to the one to be inserted, do not allow registration, otherwise allow...
asked by 12.06.2018 / 19:41
1
answer

How to make a login in Laravel using a different model and fields than the default ones?

I hope you can help me please. Recently I started using Laravel and I'm practicing doing a logging system, I want to use the functions that Laravel brings to authenticate users but using a different model than the default (user) and authenticati...
asked by 27.08.2018 / 07:50
1
answer

Select inside where in laravel

The question is that I need to enter a% conditional where , according to the data that is sent to the controller, the question one of those conditions is that I bring the data according to a select , I already tried the query in the manage...
asked by 22.06.2018 / 21:21
1
answer

Validate modal window using $ this-validate in laravel?

Cordial greeting colleagues, I have a form in which I use two modal windows, one to create agents and another to edit them, in my controller I use $ this-> validate, to validate the fields of the form, the problem that I present is that when the...
asked by 21.06.2018 / 18:00
1
answer

ErrorException (E_NOTICE) Undefined variable: sheet

I get this error in Laravel when wanting to import an excel document into my database in mysql the code is as follows: public function store(ImportadorMarceloRequest $request) { // $path = $request->file('archivo')->...
asked by 30.07.2018 / 13:58