Hi, my name is Fathul Muiin. And this is my submitted project for Laravel Developer position.
I use Laravel 8, and using laravel breeze & localization. Use laragon to open this project, so localization and domain multitenancy work correctly.
- Clone this project (git clone https://github.com/fmuiin14/fmayi.git)
- Edit .env.example to .env
- On this project, open terminal and run 'composer install'
- After that, run 'php artisan key:generate'
- Setup DB_DATABASE on .env (create the database)
- Run 'php artisan migrate' on your terminal
- Make sure APP_URL=http://fmayi.local and SESSION_DOMAIN=fmayi.local on your .env (need same value for doing localization correctly)
- Open your laragon, then Start All.
- Click the Log in or Register, localization working correctly on this project
- Choose language that you want (English, Indonesia, or Spain)
- Continue the registration, and after registration you will redirect to the subdomain.domain.local
- If after registration your page display error, you need to configuration your server first (using Apache or Nginx)