Results 1 to 2 of 2

Thread: [Laravel] Authentication with HTTPS

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

    Default [Laravel] Authentication with HTTPS

    Laravel provides a quick way to scaffold all of the routes and views you need for authentication using one simple command:

    Code:
    php artisan make:auth
    So here now we have two links:



    but we have to find the best way to force the urls in HTTPS mode when we are in Production, for example:


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

    Default

    Works using composer require ecrmnn/laravel-https



    but I disabled ForceHttps to avoid ERR_TOO_MANY_REDIRECTS

    PHP Code:
        protected $middleware = [
            \
    App\Http\Middleware\CheckForMaintenanceMode::class,
            \
    Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
            \
    App\Http\Middleware\TrimStrings::class,
            \
    Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
            \
    App\Http\Middleware\TrustProxies::class,
            
    // \Ecrmnn\LaravelHttps\Http\Middleware\ForceHttps::class,
        
    ]; 

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