Questions tagged as 'laravel'

1
answer

Event idea in laravel [duplicate]

I'm developing a system in Laravel (php). I read in several articles that "we should" use the "EVENTS" to perform actions after the main has been done, eg - > no controller: // I register a user // call event (store) - > in the eve...
asked by 08.06.2016 / 15:12
1
answer

Laravel - How to save checkbox choice in item list?

In a contact management system, I have a list of items which have a checkbox each (gmail style) so that I can select them and use some action related to the selected ones. What is the best way to save these selected items to each page accessed?...
asked by 11.05.2016 / 01:21
2
answers

Check checkboxes when choosing value from a DB in PHP (Laravel)

I have a problem that I do not know how to solve and I do not know how to search. I'm building a system in php - laravel . This system will have user levels. I've done all of the sign-ups, changes, user views, groups, and permissions. H...
asked by 29.04.2016 / 17:11
1
answer

Filtering and counting related model data

Company hasMany SectorCompany SectorCompany belongsTo Company SectorCompany hasMany Employee Officer belongsTo SectorCompany With this data in hand, how do I count how many officials with id_status = 1 a...
asked by 09.05.2016 / 19:10
1
answer

How to get the table name of a model?

I need to get the name of the table that is used by given model in my application written in Laravel . Previously, in Laravel 3 , it was only necessary to do this to find out the name of the table: var_dump(MeuModel::$...
asked by 19.04.2016 / 15:16
1
answer

Query sweeping all records

Good morning, could anyone help me with this return? Well, I have this select: public function Empenho($id) { $table = DB::table('empenho as emp') ->join('gestora', 'emp.unidGestId', '=', 'gestora.id') ->join(...
asked by 31.03.2016 / 14:41
2
answers

Point and Virgula ';' top of page Laravel

Hello, I'm developing a project with Laravel 5.1 and I'm having a problem related to a ';' at the top of the page. I deleted all the default layout code, that is, without any HTML on the page, it still shows the ';' sign. I've browsed the who...
asked by 22.03.2016 / 17:03
0
answers

Send data to a controller via jquery with no return

I'm working on a project in Laravel. In a certain part I need to send data to a controller via jquery and from the data obtained in the controller, redirect to another view. How can I do this? I usually use Ajax, but with it I think there's no w...
asked by 07.04.2016 / 18:52
0
answers

How to do LDAP authentication in Laravel

Good morning I need to change the Laravel authentication method for LDAP in my company, but I have no idea where and how to proceed with the changes. I did some research and could not find anything related. Has anyone ever had this problem...
asked by 19.02.2016 / 14:34
1
answer

Place Result Even If Registration Does Not Exist

I'm trying to make a query where the column with the total 0 appears in the table even if there are no records in that particular status. For example: SELECT STATUS, COALESCE(COUNT(ID), 0) AS TOTAL FROM TABELA WHERE ID_CHAVE =...
asked by 23.03.2016 / 13:55