Skip to content

benahmetcelik/laravel-multilang-posts

Repository files navigation

Laravel Multilang Posts

See Demo

Installation

Add composer.json file :

   "benahmetcelik/laravel-multilang-posts": "dev-main",

Run The Your Terminal :

  php artisan vendor:publish

And 0 press

Easy to use

Only Install and usage :)

Change Colors

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?

About

laravel-multilang-posts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published