zap/app/Commands/ParseConfigCommand.php
2025-08-20 19:31:08 -04:00

47 lines
1.2 KiB
PHP

<?php
namespace App\Commands;
use App\Build\SiteParser;
use App\Models\ContentCollection;
use App\Models\Page;
use App\SiteConfiguration;
use Illuminate\Console\Scheduling\Schedule;
use LaravelZero\Framework\Commands\Command;
use Symfony\Component\Yaml\Yaml;
class ParseConfigCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'config';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Command description';
/**
* Execute the console command.
*/
public function handle()
{
dd(collectionPages('projects'));
// dd(new Page("projects/authentikate/docs/quick-start/index.md"));
// dd(new Page("projects/flowtodo.md"));
// foreach ((new SiteParser)->getPages() as $p) {
// $this->info($p->key);
// $this->warn("- Entity Name: " . $p->entityName);
// $this->warn("- Collection: " . $p->collection);
// $this->warn("- Layout: " . $p->layout);
// var_dump($p->collectionProps);
// var_dump($p->collectionHierarchy);
// }
}
}