mirror of
https://github.com/archtechx/laravel-seo.git
synced 2025-12-12 09:54:03 +00:00
wip
This commit is contained in:
parent
45fc1694de
commit
31fae087ff
2 changed files with 7 additions and 3 deletions
|
|
@ -25,14 +25,14 @@
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.0",
|
"php": "^8.0",
|
||||||
"illuminate/support": "^8.24",
|
"illuminate/support": "^8.24",
|
||||||
"imliam/laravel-blade-helper": "^1.0",
|
"imliam/laravel-blade-helper": "^1.0"
|
||||||
"intervention/image": "^2.7"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"orchestra/testbench": "^6.9",
|
"orchestra/testbench": "^6.9",
|
||||||
"nunomaduro/larastan": "^0.6.10",
|
"nunomaduro/larastan": "^0.6.10",
|
||||||
"pestphp/pest": "^1.2",
|
"pestphp/pest": "^1.2",
|
||||||
"pestphp/pest-plugin-laravel": "^1.0"
|
"pestphp/pest-plugin-laravel": "^1.0",
|
||||||
|
"intervention/image": "^2.7"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"laravel": {
|
"laravel": {
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,10 @@ class SEOManager
|
||||||
/** Enable favicon extension. */
|
/** Enable favicon extension. */
|
||||||
public function favicon(string $path): static
|
public function favicon(string $path): static
|
||||||
{
|
{
|
||||||
|
if (! class_exists(ImageManager::class)) {
|
||||||
|
throw new Exception('Intervention not available, please run `composer require intervention/image`');
|
||||||
|
}
|
||||||
|
|
||||||
$this->extensions['favicon'] = true;
|
$this->extensions['favicon'] = true;
|
||||||
|
|
||||||
$doesntHaveFavicon = ! file_exists(public_path('favicon.ico'));
|
$doesntHaveFavicon = ! file_exists(public_path('favicon.ico'));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue