Skip to content

Commit

Permalink
Глобальное обновление
Browse files Browse the repository at this point in the history
  • Loading branch information
Sashagm committed Jul 4, 2023
1 parent f7d0e2c commit 0f64dbd
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 16 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

### Оглавление:

- [Требования](#требования)
- [Установка](#установка)
- [Использование](#использование)
- [Стартовое использование](#стартовое-использование)
Expand All @@ -36,6 +37,13 @@
- [Тестирование](#тестирование)
- [Лицензия](#лицензия)

#### Требования

Основные требования для установки и корректной работы:

- `PHP` >= 8.0
- `Laravel` >= 10.x
- `Composer` >= 2.4.x

#### Установка

Expand Down
4 changes: 0 additions & 4 deletions src/Console/Commands/CreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
namespace Sashagm\Seo\Console\Commands;

use Illuminate\Console\Command;

use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Artisan;
use Sashagm\Seo\Providers\SeoServiceProvider;

Expand Down Expand Up @@ -46,8 +44,6 @@ protected function install(): void

Artisan::call('migrate');
$this->components->info('Миграции выполнены...');



}

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Meta extends Model
'og_title',
'og_description',
];


public function getRobotsAttribute($value)
{
Expand Down
1 change: 0 additions & 1 deletion src/Providers/SeoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace Sashagm\Seo\Providers;

use Sashagm\Seo\Traits\SeoTrait;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Sashagm\Seo\Console\Commands\CreateCommand;

Expand Down
3 changes: 0 additions & 3 deletions src/Services/MetaService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Exception;
use Sashagm\Seo\Models\Meta;

class MetaService
{
public static function get($key = null)
Expand All @@ -21,7 +20,6 @@ public function set($key = null, $value)
return $meta->value;
}


public function getKeywords($key = null)
{
$metas = $this->checkMetaExists($key);
Expand Down Expand Up @@ -148,7 +146,6 @@ public function setPageMeta($page = null, $data)
];
}


public function checkMetaExists($meta)
{

Expand Down
5 changes: 3 additions & 2 deletions src/Traits/SeoTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

namespace Sashagm\Seo\Traits;


use Exception;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Route;
use Sashagm\Seo\Services\MetaService;

trait SeoTrait
Expand Down Expand Up @@ -66,4 +64,7 @@ protected function generateMetaTags($page_meta, $og_type, $og_locale, $og_site_n

return $output;
}



}
11 changes: 6 additions & 5 deletions src/config/seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
'og_image' => env('APP_OG_IMAGE'),

'default' => [
'keywords' => env('APP_KEYWORDS'),
'description' => env('APP_DESC'),
'robots' => env('APP_ROBOTS'),
'og_title' => env('APP_OG_TITLE'),
'og_description' => env('APP_OG_DESC'),
'keywords' => env('APP_KEYWORDS'),
'description' => env('APP_DESC'),
'robots' => env('APP_ROBOTS'),
'og_title' => env('APP_OG_TITLE'),
'og_description' => env('APP_OG_DESC'),
],



];

0 comments on commit 0f64dbd

Please sign in to comment.