Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By laravista
  • 1 Post By laravista

Thread: [Laravel 8] WORKS!! on AlterVista 🎅

  1. #1
    laravista is offline Utente AlterBlog
    Join Date
    Dec 2019
    Posts
    43

    Default [Laravel 8] WORKS!! on AlterVista 🎅

    This is the free project:



    You have to configure two .htaccess files, one here /L8x

    Code:
    <IfModule mod_rewrite.c>
        RewriteEngine On
    
        RewriteCond %{HTTP:X-Forwarded-Proto} !=https
        RewriteCond %{HTTPS} =off
        RewriteRule ^ https://laravista.altervista.org%{REQUEST_URI} [L,R=301]
    
        RewriteBase /L8x
        RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
    and one here /L8x/public

    Code:
    <IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews -Indexes
        </IfModule>
    
        RewriteEngine On
        RewriteBase /L8x
    
        # 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]
    
        # Send Requests To Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </IfModule>
    and using the prefix here /L8x/routes/web.php

    PHP Code:
    Route::get('/L8x', function () {
        return 
    view('welcome');
    }); 
    WORKS!!

    alemoppo likes this.

  2. #2
    laravista is offline Utente AlterBlog
    Join Date
    Dec 2019
    Posts
    43

    Default

    Instead to use the command line for database migration php artisan migrate you have to use it from the web:

    PHP Code:
    Route::get('/L8x/artisan/migrate', function () {
        
    Artisan::call('migrate');
        return 
    Artisan::output();
    }); 


    This is the output the first time:

    Code:
    Migrating: 2014_10_12_000000_create_users_table
    Migrated:  2014_10_12_000000_create_users_table (60.80ms)
    Migrating: 2014_10_12_100000_create_password_resets_table
    Migrated:  2014_10_12_100000_create_password_resets_table (43.28ms)
    Migrating: 2019_08_19_000000_create_failed_jobs_table
    Migrated:  2019_08_19_000000_create_failed_jobs_table (50.26ms)
    and this is after:

    Code:
    Nothing to migrate.
    But before you need to fix this error:


  3. #3
    laravista is offline Utente AlterBlog
    Join Date
    Dec 2019
    Posts
    43

    Default

    With the last commit I added CheckRole middleware:






  4. #4
    laravista is offline Utente AlterBlog
    Join Date
    Dec 2019
    Posts
    43

    Default

    With the last commit I added file editor (AdminController) useful for .env hidden file:

    alemoppo likes this.

  5. #5
    laravista is offline Utente AlterBlog
    Join Date
    Dec 2019
    Posts
    43

    Default

    SearchDown | The first Markdown search-engine

    You have to put the correct link and HTML attribute in your rendered page, for example:

    HTML Code:
    <a data-media-type="text/markdown" href="/L8x/markdown/index.md">index.md</a>
    See the pages found here:



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO