PHP code example of salyangoz / parasut-rapor
1. Go to this page and download the library: Download salyangoz/parasut-rapor 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/ */
salyangoz / parasut-rapor example snippets
'providers' => [
Salyangoz\ParasutRapor\ParasutRaporServiceProvider::class,
Maatwebsite\Excel\ExcelServiceProvider::class
],
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
protected $commands = [
\Salyangoz\ParasutRapor\Commands\Report::class
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
/* Aylık rapor */
$schedule->command('parasut-rapor:report')->monthly();
/* Haftalık */
$schedule->command('parasut-rapor:report')->weekly();
/* Günlük rapor */
#$schedule->command('parasut-rapor:report')->daily();
}
/**
* Register the Closure based commands for the application.
*
* @return void
*/
protected function commands()
{