benahmetcelik/laravel-multilang-posts

dev-main 2022-09-24 12:57 UTC

This package is auto-updated.

Last update: 2024-04-24 16:53:49 UTC


README

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?