Lang
Laravel 5.5 Language package with language switch and language urls.
Structure
If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.
bin/
config/
src/
tests/
vendor/
Install
Install the package Via Composer
$ composer require hostato/lang
If you installing at laravel 5.5 then you may go directly to Publish other wise you will need to edit composer.json and register the Service Provider
composer.json
Add this code to your composer.json under the autoload at your main directory
"psr-4": {
"Hostato\\Lang\\": "vendor/hostato/lang/src"
}
Service Provider
At file config/app.php register service provider under * Package Service Providers...
Hostato\Lang\LangerviceProvider::class,
Publishing
run this command
$ php artisan vendor:publish --provider="Hostato\Lang\LangServiceProvider"
Usage
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email :author_email instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.