Based on the tutorial How to Create Multilingual Website in Laravel?
This is a Laravel 8 project. The installation is similar to a new Laravel 8 project.
Recommended:
See Cloning a repository for details on how to create a local copy of this project on your computer.
e.g.
git clone git@github.com:Pen-y-Fan/multilingual.git
Install all the dependencies using composer
cd multilingual
composer install
Create an .env
file from .env.example
composer post-root-package-install
Generate an APP_KEY using the artisan command
php artisan key:generate
composer test
All being well you should see the tests run successfully:
PHPUnit 9.5.13 by Sebastian Bergmann and contributors.
Example (Tests\Unit\Example)
✔ Example
Example (Tests\Feature\Example)
✔ Example
Language (Tests\Feature\Language)
✔ The default language is english
✔ The language can be set to spanish
✔ The language can be set to french
Time: 00:00.139, Memory: 22.00 MB
OK (5 tests, 13 assertions)
php artisan serve
Open your browser to: https://localhost:8000/lang/home
This is a personal project. Contributions are not required. Anyone interested in developing this project are welcome to fork or clone for your own use.
- Michael Pritchard (AKA Pen-y-Fan), based on the tutorial How to Create Multilingual Website in Laravel?
MIT License (MIT). Please see License File for more information.