NFarrington/vatsim-url-shortener

View on GitHub
app/Console/Commands/GenerateStaticHtml.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;

class GenerateStaticHtml extends Command
{
    protected $signature = 'html:generate';
    protected $description = 'Generate static HTML pages.';

    public function handle()
    {
        $html = view('platform.errors.5xx')->render();
        file_put_contents(public_path().'/5xx.html', $html);
    }
}