PHP code example of thibaultvanc / facturation-regie
1. Go to this page and download the library: Download thibaultvanc/facturation-regie library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thibaultvanc / facturation-regie example snippets
public function regie_responsable()
{
return $this->belongsTo(\App\User::class, 'user_id');
}
public function getPointageDate() :Carbon
{
return $this->done_at
}
public function getPointageName() :Carbon
{
return $this->task_title
}
public function getPointageDescription() :Carbon
{
return $this->body
}
Pointage::between($date1, $date2); (carbon date or string)
Pointage::forDay($date); (carbon date or carbon)
Pointage::forMonth($date); (prend le mois en cours)
Pointage::forYeay('2019'); (carbon)
Pointage::forUser($user); (user object or user_id)
Pointage::facturable();
Pointage::noFacturable();