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?