-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert the package name to avoid any conflicts with ARCANESOFT's modules
- Loading branch information
1 parent
0ecaab5
commit d43f4ae
Showing
12 changed files
with
88 additions
and
44 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php namespace Arcanedev\LaravelSeo; | ||
|
||
/** | ||
* Class Seo | ||
* | ||
* @package Arcanedev\LaravelSeo | ||
* @author ARCANEDEV <arcanedev.maroc@gmail.com> | ||
*/ | ||
class Seo | ||
{ | ||
/* ----------------------------------------------------------------- | ||
| Constants | ||
| ----------------------------------------------------------------- | ||
*/ | ||
const KEY = 'laravel-seo'; | ||
|
||
/* ----------------------------------------------------------------- | ||
| Main Methods | ||
| ----------------------------------------------------------------- | ||
*/ | ||
/** | ||
* Get the seo config. | ||
* | ||
* @param string $key | ||
* @param mixed|null $default | ||
* | ||
* @return mixed | ||
*/ | ||
public static function getConfig($key, $default = null) | ||
{ | ||
return config(self::KEY.'.'.$key, $default); | ||
} | ||
|
||
/** | ||
* Get the seo translation. | ||
* | ||
* @param string $key | ||
* @param array $replace | ||
* @param string $locale | ||
* | ||
* @return string | ||
*/ | ||
public static function getTrans($key = null, $replace = [], $locale = null) | ||
{ | ||
return trans(self::KEY.'::'.$key, $replace, $locale); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters