peliprint/app/BlueprintFramework/GetExtensionSchedules.php

16 lines
370 B
PHP

<?php
namespace App\BlueprintFramework;
use Illuminate\Console\Scheduling\Schedule;
use File;
class GetExtensionSchedules {
public static function schedules(Schedule $schedule) {
foreach (File::allFiles(app_path('BlueprintFramework/Schedules/')) as $file) {
if ($file->getExtension() == 'php') {
require $file->getPathname();
}
}
}
};