PHP code example of makth / laravel-db-language

1. Go to this page and download the library: Download makth/laravel-db-language library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

makth / laravel-db-language example snippets


"    "makth/laravel-db-language": "2.0"
}

'providers' => [
    Makth\DbLanguage\DbLanguageServiceProvider::class,
];

'aliases' => [
    'Lang' => Makth\DbLanguage\Facade\Lang::class,
];

php artisan language:add German

php artisan language:remove German

php artisan language:add German --default="English"

php artisan vendor:publish --tag=config

php artisan vendor:publish --tag=flags