/multilingual

Primary LanguagePHPMIT LicenseMIT

Multilingual

Based on the tutorial How to Create Multilingual Website in Laravel?

Requirements

This is a Laravel 8 project. The installation is similar to a new Laravel 8 project.

Recommended:

Clone

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

Install all the dependencies using composer

cd multilingual
composer install

Create .env

Create an .env file from .env.example

composer post-root-package-install

Generate APP_KEY

Generate an APP_KEY using the artisan command

php artisan key:generate

run tests

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)

Start the app

php artisan serve

Access the route

Open your browser to: https://localhost:8000/lang/home

Contributing

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.

Credits

License

MIT License (MIT). Please see License File for more information.