From 7a67303527eaceed2c662165315578f6e18257e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stan=20Forto=C5=84ski?= Date: Sun, 22 Nov 2020 21:24:38 +0100 Subject: [PATCH] Update README.md --- README.md | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30c93ab..d30aa77 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,35 @@ Laravel Blog 8.x ## About -TODO +Laravel Blog application. ## Installation -TODO +1. Everyting like standard Laravel installation (more in https://laravel.com/docs/8.x#installation): + - download release or clone this repo + - setup your blog in .env file. +3. Run artisan `php artisan storage:link` (necessary for store images). +2. Fill correctly `APP_DISQUS` - your embed.js provided by Disqus and `SESSION_DOMAIN` - your domain. +3. Add some users in database/seeders/UserSeeder.php for example: +```php +DB::table('users')->insert([ + 'name' => 'your_user_name', + 'first_name' => 'your_first_name', + 'last_name' => 'your_last_name', + 'email' => 'your_email@domain.test', + 'website' => 'your_website', + 'description' => 'your_description', + 'password' => Hash::make('your_password'), + 'email_verified_at' => now(), + 'remember_token' => '' +]); +``` +4. Migrate database using artisan `php artisan migrate --seed`. + +Have fun :) ## Languages -TODO +- Two languages are available by default English and Polish. +- If you want to add new language you will make new folder for example de in resources/lang and copy everyting form resources/lang/en to this folder and create de.json in resources/lang folder. And then translate and set 'locale' and 'fallback_locale' in config/app.php to your language for example de. ## Libraries - [Laravel 8.x](https://laravel.com/docs/8.x)