benahmetcelik/laravel-multilang-posts is a Laravel package for laravel seo tools.
It currently has 0 GitHub stars and 4 downloads on Packagist.
Install it with composer require benahmetcelik/laravel-multilang-posts.
Discover more Laravel packages by benahmetcelik
or browse all Laravel packages to compare alternatives.
Last updated
Add composer.json file :
"benahmetcelik/laravel-multilang-posts": "dev-main",
Run The Your Terminal :
php artisan vendor:publish
And 0 press
Only Install and usage :)
Config/multilang_post.php
'models'=>[
'App\Models\News' => [
'title_column' => 'title',
// Column to be keywords (data in this column will be spaced and combined with (,))
'keywords_column' => 'title',
'desc_column' => 'content',
'image' => true,
'image_column' => 'image',
'desc_lenght' => 10,
'slug_column' => 'slug',
'route' => 'news'
]
]
Simple Usage in blade file :
{!! $your_model->getLangPost('en','column') !!}
This is simple. Isn't it?