ulearnpro / ulearn

ULEARN - Open Source(FREE) LMS script in Laravel 5.8 and ReactJS 16.9
https://www.ulearnpro.com
MIT License
635 stars 290 forks source link

Improve installation instructions #3

Closed top-master closed 5 years ago

top-master commented 5 years ago

I had some hard time trying to get this working, And it would be nice if something about "APP_KEY" could be appended to the installation instructions, like below:


After above, ensure that your ".env" file at least contains the empty key-option "APP_KEY=", And run below to generate and set a key option in your ".env" configuration file:

php artisan key:generate
php artisan config:cache

Another problem was that the "public/.htaccess" file did not exist and I added one from another Laravel project, something like:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
ulearnpro commented 5 years ago

@top-master Thanks for your suggestion, Now I have added the .env and .htaccess file to the repo..

ulearnpro commented 5 years ago

Added .env and .htaccess files