2017 © Pedro Peláez
 

library laravel-reset

This reset package lets you take a snapshot of your laravel application and periodic reset to that snapshot

image

beeldvoerders/laravel-reset

This reset package lets you take a snapshot of your laravel application and periodic reset to that snapshot

  • Wednesday, October 18, 2017
  • by Ertenal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 155 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

Reset your Laravel application to a previous state

This Laravel package lets you restore your application to a previous declared state. This is helpfull for demo applications where you set your users free but want to reset the state, for example, every midnight., (*1)

How to install

First require it in composer:, (*2)

composer require beeldvoerders/laravel-reset

Next, add the ResetServiceProvider class to your config/app.php providers array:, (*3)

Beeldvoerders\Reset\ResetServiceProvider::class

How to use

You can specify which directories has to reset in the reset config file. By default this is the storage/app directory. If you want to change these config settings, publish them first to your application:, (*4)

php artisan vendor:publish --provider="Beeldvoerders\Reset\ResetServiceProvider"

If you set the config right, you have to create the back-up on which the restore is based:, (*5)

php artisan reset:create

Once the back-up is created, test it by making some changes to your application and reset the state:, (*6)

php artisan reset

If you want to reset your application once every midnight, then you should add the Reset command to the Laravel scheduler:, (*7)

$schedule->command('reset')
      ->daily();

Contact

If you discover a bug, wants to participate or just have a question, feel free to contact me at daan@beeldvoerders.nl., (*8)

License

This package is open-sourced software licensed under the MIT license., (*9)

The Versions

18/10 2017

dev-master

9999999-dev https://www.beeldvoerders.nl

This reset package lets you take a snapshot of your laravel application and periodic reset to that snapshot

  Sources   Download

MIT

The Requires

 

by Daan Aikema

laravel reset snapshot beeldvoerders