Download the PHP package bastienbot/laravel-set-lang without Composer
On this page you can find all versions of the php package bastienbot/laravel-set-lang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bastienbot/laravel-set-lang
More information about bastienbot/laravel-set-lang
Files in bastienbot/laravel-set-lang
Download bastienbot/laravel-set-lang
More information about bastienbot/laravel-set-lang
Files in bastienbot/laravel-set-lang
Vendor bastienbot
Package laravel-set-lang
Short Description Lib to detect and set languages easily for Laravel
License
Package laravel-set-lang
Short Description Lib to detect and set languages easily for Laravel
License
Please rate this library. Is it a good library?
Informations about the package laravel-set-lang
Laravel set Lang
Infos
This package is only compatible with Laravel 5.1+ This package has two purposes :
- Setting by default the language to the client browser language. Fallback language is english
- Providing routes and a service provider to set the user's language choice in a cookie and retrieve it on load
Usage
- Go to you Laravel project folder in your favorite terminal
- Execute :
composer require bastienbot/laravel-set-lang dev-master
-
Add the following line to the
config/app.php
: - Now you just need to create the links in HTML in your view(s), the anchors being :
/lang/{lang}
.{lang}
should be a string, ex :en
,fr
, etc...
All versions of laravel-set-lang with dependencies
PHP Build Version
Package Version
No informations.
The package bastienbot/laravel-set-lang contains the following files
Loading the files please wait ....