Ajoute le parser Ouest-France #13

Merged
Shikiryu merged 2 commits from features/ouestfrance/11 into main 2020-07-27 12:52:47 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 1a1294ce22 - Show all commits

View File

@ -16,7 +16,7 @@ class PublicController extends Controller
$this->seo()
->setTitle($home->title)
->setDescription($home->excerpt())
->addImages(array_map(static function($picture) {
->addImages(array_map(static function ($picture) {
return asset($picture);
}, $home->pictures));
$this->seo()

View File

@ -24,8 +24,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
Str::macro('currency', static function ($price)
{
Str::macro('currency', static function ($price) {
return sprintf('%s €', number_format($price, 0, ',', ' '));
});
}