mohamedhk2/laravel-prod-tools

Laravel Prod Tools

v1.0.3 2022-08-19 17:29 UTC

This package is auto-updated.

Last update: 2023-01-21 16:46:10 UTC


README

Total Downloads Latest Unstable Version License

Packages

anhskohbo/no-captcha
cviebrock/eloquent-sluggable
ecrmnn/laravel-https
intervention/image
jorenvanhocht/laravel-share
laravel/ui
mcamara/laravel-localization
redcenter/laravel-non-www-redirect
spatie/laravel-medialibrary
spatie/laravel-translatable

Removed packages

packagereplaced byversionreason
morningtrain/laravel-httpsecrmnn/laravel-https^1.0.3Not support Laravel ^9.x

Install

The recommended way to install this is through composer:

composer require "mohamedhk2/laravel-prod-tools:1.0.3"

Laravel Force SSL

  • Add under `providers in config/app.php`

    \Ecrmnn\LaravelHttps\Providers\ServiceProvider::class,
    
  • Add under `$middleware in app/Http/Kernel.php`

    \Ecrmnn\LaravelHttps\Http\Middleware\ForceHttps::class,
    
  • Update the following in your .env:
    :warning: HTTPS will only be forced when `env('HTTPS') is set to true` :warning:

        HTTPS=true
    

Laravel non-WWW Redirect

  • Add the middleware class to your Kernel.php in App\Http:

        protected $middlewareGroups = [
            'web' => [
                ...
                \LaravelNonWwwRedirect\LaravelNonWwwRedirectMiddleware::class,
            ],
        ];
    

License

The Laravel Prod Tools is open-sourced software licensed under the MIT license