This project was built with Laravel v8.20.1. The goal of this project is to provide a simple example on changing webapp language by selecting the language you want to read at the frontend.
-
PHP >= 7.3 with extensions:
-
BCMath PHP Extension
-
Ctype PHP Extension
-
Fileinfo PHP Extension
-
JSON PHP Extension
-
Mbstring PHP Extension
-
OpenSSL PHP Extension
-
PDO PHP Extension
-
Tokenizer PHP Extension
-
XML PHP Extension
-
- clone this project
git clone https://github.com/nivaldocavalcanti/laravel-language-change-example.git
- enter the project folder
cd laravel-language-change-example
- install all project dependencies with
composer install
- create .env file from example by renaming it from .env.example file or copying with
cp .env.example .env
- generate app key with
php artisan key:generate
- start the server with
php artisan serve
or if you already have a local server just go to your browserhttps://localhost/laravel-language-change-example
- select the language you want to see and see the text changes on the screen
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Expressive, intuitive database ORM.
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
Thank you for considering contributing to this! I will analyze and accept any pull requests that contribute to this example without throwing any error.
The Laravel framework is open-sourced software licensed under the MIT license so this project follow the same LICENSE.