Package Data | |
---|---|
Maintainer Username: | larasoft-io |
Maintainer Contact: | rock.star9722@gmail.com (Larasoft.io) |
Package Create Date: | 2016-09-10 |
Package Last Update: | 2018-01-02 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-29 15:11:50 |
Package Statistics | |
---|---|
Total Downloads: | 67 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 0 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel Remote supports Laravel 5.* currently.
Via Composer
$ composer require larasoft/laravel-remote dev-master
Add following two providers in providers array of "config/app.php".
'providers' => [
...
\Larasoft\LaravelRemote\LaravelRemoteServiceProvider::class,
Spatie\Backup\BackupServiceProvider::class,
];
Run "php artisan vendor:publish" in project root to publish config files and middleware.
In "app/Http/Kernel.php, replace "\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class" with "LaravelRemoteCheckForMaintenanceMode::class" in "$middleware" array.
In "config/remote.php", replace 'LARAVEL_REMOTE_KEY' with your generated key in Laravel Remote Dashboard.
return [
'key' => env('LARAVEL_REMOTE_KEY'),
'url' => env('LARAVEL_REMOTE_URL')
];
Configure your config/database.php as follows to enable Backups of your database.
'connections' => [
'mysql' => [
'dump_command_path' => '/path/to/the/binary', // only the path, so without 'mysqldump' or 'pg_dump'
'dump_command_timeout' => 60 * 5, // 5 minute timeout
'dump_using_single_transaction' => true, // perform dump using a single transaction
'driver' => 'mysql',
...
],
For more information regarding Database backups visit: https://docs.spatie.be/laravel-backup/v3/introduction
In "config/remote.php", replace 'LARAVEL_REMOTE_URL' with base URL of Laravel Remote Dashboard (without trailing /). e.g: http://laravel-remote.com
return [
'key' => env('LARAVEL_REMOTE_KEY'),
'url' => env('LARAVEL_REMOTE_URL')
];
Add following entry in $listen array of App\Providers\EventServiceProvider.
protected $listen = [
LaravelRemoteJobFailed::class => [
ListenLaravelRemoteJobFailed::class,
],
...
];
Override failed() method in your job classes i.e. in app/Jobs directory as follows.
public function failed()
{
$data = ['job' => class_basename($this)];
event(new LaravelRemoteJobFailed($data));
...
}
That's it.
Use Laravel Remote Dashboard to manage your Apps. Enjoy!
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email :author_email instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.