{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-backup/issues/115","repository_url":"https://api.github.com/repos/spatie/laravel-backup","labels_url":"https://api.github.com/repos/spatie/laravel-backup/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-backup/issues/115/comments","events_url":"https://api.github.com/repos/spatie/laravel-backup/issues/115/events","html_url":"https://github.com/spatie/laravel-backup/issues/115","id":147946629,"number":115,"title":"Exeptions on bavkup","user":{"login":"errogaht","id":6324265,"avatar_url":"https://avatars.githubusercontent.com/u/6324265?v=3","gravatar_id":"","url":"https://api.github.com/users/errogaht","html_url":"https://github.com/errogaht","followers_url":"https://api.github.com/users/errogaht/followers","following_url":"https://api.github.com/users/errogaht/following{/other_user}","gists_url":"https://api.github.com/users/errogaht/gists{/gist_id}","starred_url":"https://api.github.com/users/errogaht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errogaht/subscriptions","organizations_url":"https://api.github.com/users/errogaht/orgs","repos_url":"https://api.github.com/users/errogaht/repos","events_url":"https://api.github.com/users/errogaht/events{/privacy}","received_events_url":"https://api.github.com/users/errogaht/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T05:00:33Z","updated_at":"2016-04-14T06:41:21Z","closed_at":null,"body":"Laravel 5.2\r\n`\r\n[2016-04-12 06:07:04] local.ERROR: exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Call to undefined method Illuminate\\Foundation\\Application::backupWasSuccessful()' in /home/admin/web/laravel/public_html/vendor/spatie/laravel-backup/src/Notifications/EventHandler.php:29\r\nStack trace:\r\n#0 {main}  \r\n[2016-04-12 06:10:38] local.ERROR: exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Call to undefined method Illuminate\\Foundation\\Application::cleanupWasSuccessFul()' in /home/admin/web/laravel/public_html/vendor/spatie/laravel-backup/src/Notifications/EventHandler.php:45\r\nStack trace:\r\n#0 {main}  \r\n[2016-04-12 06:11:23] local.ERROR: exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Call to undefined method Illuminate\\Foundation\\Application::unHealthyBackupWasFound()' in /home/admin/web/laravel/public_html/vendor/spatie/laravel-backup/src/Notifications/EventHandler.php:69\r\nStack trace:\r\n#0 {main}  \r\n`"},"comment":{"url":"https://api.github.com/repos/spatie/laravel-backup/issues/comments/209784288","html_url":"https://github.com/spatie/laravel-backup/issues/115#issuecomment-209784288","issue_url":"https://api.github.com/repos/spatie/laravel-backup/issues/115","id":209784288,"user":{"login":"errogaht","id":6324265,"avatar_url":"https://avatars.githubusercontent.com/u/6324265?v=3","gravatar_id":"","url":"https://api.github.com/users/errogaht","html_url":"https://github.com/errogaht","followers_url":"https://api.github.com/users/errogaht/followers","following_url":"https://api.github.com/users/errogaht/following{/other_user}","gists_url":"https://api.github.com/users/errogaht/gists{/gist_id}","starred_url":"https://api.github.com/users/errogaht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errogaht/subscriptions","organizations_url":"https://api.github.com/users/errogaht/orgs","repos_url":"https://api.github.com/users/errogaht/repos","events_url":"https://api.github.com/users/errogaht/events{/privacy}","received_events_url":"https://api.github.com/users/errogaht/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T06:41:21Z","updated_at":"2016-04-14T06:41:21Z","body":"and my config is\r\n\r\n`\r\n<?php\r\n\r\nreturn [\r\n\r\n    'backup' => [\r\n\r\n        /*\r\n         * The name of this application. You can use this name to monitor\r\n         * the backups.\r\n         */\r\n        'name' => 'all',\r\n\r\n        'source' => [\r\n\r\n            'files' => [\r\n\r\n                /*\r\n                 * The list of directories that should be part of the backup. You can\r\n                 * specify individual files as well.\r\n                 */\r\n                'include' => [\r\n                    '/home/admin/web/laravel/public_html'\r\n                ],\r\n\r\n                /*\r\n                 * These directories will be excluded from the backup.\r\n                 * You can specify individual files as well.\r\n                 */\r\n                'exclude' => [\r\n                    '/home/admin/web/laravel/public_html/vendor',\r\n                    '/home/admin/web/site/public_html/.git',\r\n                    '/home/admin/web/site/public_html/vendor',\r\n                    '/home/admin/web/site/public_html/app/cache',\r\n                    '/home/admin/web/site/public_html/thumbs',\r\n                ],\r\n            ],\r\n\r\n            /*\r\n             * The names of the connections to the databases that should be part of the backup.\r\n             * Currently only MySQL- and PostgreSQL-databases are supported.\r\n             */\r\n            'databases' => [\r\n                'site',\r\n            ],\r\n        ],\r\n\r\n        'destination' => [\r\n\r\n            /*\r\n             * The disk names on which the backups will be stored.\r\n             */\r\n            'disks' => [\r\n                'backup',\r\n            ],\r\n        ],\r\n    ],\r\n\r\n    'cleanup' => [\r\n        /*\r\n         * The strategy that will be used to cleanup old backups.\r\n         * The youngest backup will never be deleted.\r\n         */\r\n        'strategy' => \\Spatie\\Backup\\Tasks\\Cleanup\\Strategies\\DefaultStrategy::class,\r\n\r\n        'defaultStrategy' => [\r\n\r\n            /*\r\n             * The amount of days that all daily backups must be kept.\r\n             */\r\n            'keepAllBackupsForDays' => 7,\r\n\r\n            /*\r\n             * The amount of days that all daily backups must be kept.\r\n             */\r\n            'keepDailyBackupsForDays' => 16,\r\n\r\n            /*\r\n             * The amount of weeks of which one weekly backup must be kept.\r\n             */\r\n            'keepWeeklyBackupsForWeeks' => 8,\r\n\r\n            /*\r\n             * The amount of months of which one monthly backup must be kept.\r\n             */\r\n            'keepMonthlyBackupsForMonths' => 4,\r\n\r\n            /*\r\n             * The amount of years of which one yearly backup must be kept\r\n             */\r\n            'keepYearlyBackupsForYears' => 2,\r\n\r\n            /*\r\n             * After cleaning up the backups remove the oldest backup until\r\n             * this amount of megabytes has been reached.\r\n             */\r\n            'deleteOldestBackupsWhenUsingMoreMegabytesThan' => 10000\r\n        ]\r\n    ],\r\n\r\n\r\n    /*\r\n     *  In this array you can specify which backups should be monitored.\r\n     *  If a backup does not meet the specified requirements the\r\n     *  UnHealthyBackupWasFound-event will be fired.\r\n     */\r\n    'monitorBackups' => [\r\n        [\r\n            'name' => 'all',\r\n            'disks' => ['backup'],\r\n            'newestBackupsShouldNotBeOlderThanDays' => 1,\r\n            'storageUsedMayNotBeHigherThanMegabytes' => 10000,\r\n        ],\r\n\r\n        /*\r\n        [\r\n            'name' => 'name of the second app',\r\n            'disks' => ['local', 's3'],\r\n            'newestBackupsShouldNotBeOlderThanDays' => 1,\r\n            'storageUsedMayNotBeHigherThanMegabytes' => 5000,\r\n        ],\r\n        */\r\n    ],\r\n\r\n    'notifications' => [\r\n\r\n        /*\r\n         * This class will be used to send all notifications.\r\n         */\r\n        'handler' => Spatie\\Backup\\Notifications\\Notifier::class,\r\n\r\n        /*\r\n         * Here you can specify the ways you want to be notified when certain\r\n         * events take place. Possible values are \"log\", \"mail\", \"slack\" and \"pushover\".\r\n         *\r\n         * Slack requires the installation of the maknz/slack package.\r\n         */\r\n        'events' => [\r\n            'whenBackupWasSuccessful'     => ['log'],\r\n            'whenCleanupWasSuccessful'    => ['log'],\r\n            'whenHealthyBackupWasFound'   => ['log'],\r\n            'whenBackupHasFailed'         => ['log', 'mail'],\r\n            'whenCleanupHasFailed'        => ['log', 'mail'],\r\n            'whenUnhealthyBackupWasFound' => ['log', 'mail'],\r\n        ],\r\n\r\n        /*\r\n         * Here you can specify how emails should be sent.\r\n         */\r\n        'mail' => [\r\n            'from' => 'your@email.com',\r\n            'to'   => 'your@email.com',\r\n        ],\r\n\r\n        /*\r\n         * Here you can specify how messages should be sent to Slack.\r\n         */\r\n        'slack' => [\r\n            'channel'  => '#backups',\r\n            'username' => 'Backup bot',\r\n            'icon'     => ':robot:',\r\n        ],\r\n\r\n        /*\r\n         * Here you can specify how messages should be sent to Pushover.\r\n         */\r\n        'pushover' => [\r\n            'token'  => env('PUSHOVER_APP_TOKEN'),\r\n            'user'   => env('PUSHOVER_USER_KEY'),\r\n            'sounds' => [\r\n                'success' => env('PUSHOVER_SOUND_SUCCESS','pushover'),\r\n                'error'   => env('PUSHOVER_SOUND_ERROR','siren'),\r\n            ],\r\n        ],\r\n    ],\r\n    'notifications' => ''\r\n];\r\n\r\n`"}}