Looking to hire Laravel developers? Try LaraJobs

laravel-trial-mode maintained by avviso-si

Description
Easy Trial Mode for Laravel 5
Last update
2018/06/20 21:04 (dev-master)
License
Links
Downloads
20

Comments
comments powered by Disqus

Laravel Trial Mode

Latest Stable Version Total Downloads License

For Laravel 5.2+

Instalation

composer require avviso-si/laravel-trial-mode="1.0"

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

\AvvisoSI\TrialMode\Providers\TrialModeServiceProvider

Add the Middleware in middleware array in app/Http/Kernel.php

protected $middleware = [
    ...
    \AvvisoSI\TrialMode\Http\Middleware\CheckForTrialMode::class,
];

Add trial at your storage/framework/.gitignore

Usage

Start trial mode with 14 days

php artisan trial:set 14

End trial mode

php artisan trial:remove

Customize View

To customize, you just need create a 402.blade.php at app/resources/views/errors/