1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-17 03:54:03 +00:00

Refactor to command (#13)

* wip

* wip

* wip
This commit is contained in:
Lars Klopstra 2021-11-15 18:07:09 +01:00 committed by GitHub
parent 5ca343a116
commit 7b24a50bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 34 deletions

View file

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace ArchTech\SEO;
use ArchTech\SEO\Commands\GenerateFaviconsCommand;
use Illuminate\Support\ServiceProvider;
use ImLiam\BladeHelper\BladeHelperServiceProvider;
use ImLiam\BladeHelper\Facades\BladeHelper;
@ -20,6 +21,12 @@ class SEOServiceProvider extends ServiceProvider
{
$this->loadViewsFrom(__DIR__ . '/../assets/views', 'seo');
if ($this->app->runningInConsole()) {
$this->commands([
GenerateFaviconsCommand::class,
]);
}
$this->publishes([
__DIR__ . '/../assets/views' => resource_path('views/vendor/seo'),
], 'seo-views');