@@ -5,9 +5,9 @@ |
||
| 5 | 5 | 'model' => \Fomvasss\LaravelMetaTags\Models\MetaTag::class, |
| 6 | 6 | |
| 7 | 7 | 'available' => [ |
| 8 | - 'title' => ['title' => 'Заголовок страницы', 'max' => 65, 'form_type' => 'string',], |
|
| 9 | - 'description' => ['title' => 'Описание страницы', 'max' => 300, 'form_type' => 'text',], |
|
| 10 | - 'keywords' => ['title' => 'Ключевые слова',], |
|
| 8 | + 'title' => ['title' => 'Заголовок страницы', 'max' => 65, 'form_type' => 'string', ], |
|
| 9 | + 'description' => ['title' => 'Описание страницы', 'max' => 300, 'form_type' => 'text', ], |
|
| 10 | + 'keywords' => ['title' => 'Ключевые слова', ], |
|
| 11 | 11 | |
| 12 | 12 | // 'og_title' => ['title' => 'OG-title', 'type' => 'og'], |
| 13 | 13 | // 'og_description' => ['title' => 'OG-description', 'type' => 'og'], |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | public function getForPath(): array |
| 132 | 132 | { |
| 133 | 133 | if ($this->path) { |
| 134 | - if (! $this->pathModel) { // Singleton |
|
| 134 | + if (!$this->pathModel) { // Singleton |
|
| 135 | 135 | $modelClass = config('meta-tags.model', \Fomvasss\LaravelMetaTags\Models\MetaTag::class); |
| 136 | 136 | $this->pathModel = $modelClass::wherePath($this->path)->first(); |
| 137 | 137 | } |
@@ -38,17 +38,17 @@ |
||
| 38 | 38 | |
| 39 | 39 | protected function publishedConfig() |
| 40 | 40 | { |
| 41 | - $this->publishes([__DIR__ . '/../config/meta-tags.php' => config_path('meta-tags.php') |
|
| 41 | + $this->publishes([__DIR__.'/../config/meta-tags.php' => config_path('meta-tags.php') |
|
| 42 | 42 | ], 'meta-tags-config'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | protected function publishedMigrations() |
| 46 | 46 | { |
| 47 | - if (! class_exists('CreateMetaTagsTable')) { |
|
| 47 | + if (!class_exists('CreateMetaTagsTable')) { |
|
| 48 | 48 | $timestamp = date('Y_m_d_His', time()); |
| 49 | 49 | |
| 50 | 50 | $migrationPath = __DIR__.'/../database/migrations/create_meta_tags_table.php'; |
| 51 | - $this->publishes([$migrationPath => database_path('/migrations/' . $timestamp . '_create_meta_tags_table.php'), |
|
| 51 | + $this->publishes([$migrationPath => database_path('/migrations/'.$timestamp.'_create_meta_tags_table.php'), |
|
| 52 | 52 | ], 'meta-tags-migrations'); |
| 53 | 53 | } |
| 54 | 54 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('meta_tags', function (Blueprint $table) { |
|
| 16 | + Schema::create('meta_tags', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | # url path |
| 19 | 19 | $table->string('path')->nullable(); |