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...
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?...
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...
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...
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::$...
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(...
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...
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...
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...
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 =...