Set a micropub token when not in production

This commit is contained in:
Jonny Barnes 2016-12-08 16:36:50 +00:00
parent e32cc59b81
commit fc5caf5392

View file

@ -15,7 +15,7 @@ class MicropubSessionProvider extends ServiceProvider
public function boot()
{
//allow micropub use in development
if (env('APP_DEBUG') == true) {
if (config('app.env') !== 'production') {
session(['me' => env('APP_URL')]);
if (Storage::exists('dev-token')) {
session(['token' => Storage::get('dev-token')]);