A browser-based MMO with jellies & sundry.
This software is pre-alpha, don't bother to use it just yet...
composer require dan-powell/jellies
// Jellies Service Provider
DanPowell\Jellies\JelliesServiceProvider::class,
// Third Party
Collective\Html\HtmlServiceProvider::class,
Krucas\Notification\NotificationServiceProvider::class,
// Jellies
// Third Party
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Notification' => Krucas\Notification\Facades\Notification::class,
protected $middlewareGroups = [
'web' => [
...
\Illuminate\Session\Middleware\StartSession::class,
\Krucas\Notification\Middleware\NotificationMiddleware::class,
Kernel middleware array (must be placed after 'Illuminate\Session\Middleware\StartSession' middleware)
php artisan vendor:publish --tag='database'
php artisan migrate
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => DanPowell\Jellies\Models\User::class,
],
use DanPowell\Jellies\Console\Commands\Incursion\IncursionProcessEncounters;
use DanPowell\Jellies\Console\Commands\User\UserAddAction;
use DanPowell\Jellies\Console\Commands\User\UserAttack;
class Kernel extends ConsoleKernel
{
protected $commands = [
IncursionProcessEncounters::class,
UserAddAction::class,
UserAttack::class
];
protected function schedule(Schedule $schedule)
{
$schedule->command('incursion:encounters --queue')->everyFiveMinutes();
$schedule->command('user:actions --queue')->hourly();
}
php artisan vendor:publish --tag='database' --force
php artisan migrate
php artisan vendor:publish --tag='database' --force
$this->call('JelliesSeeder');
composer dump-autoload
php artisan db:seed
php artisan vendor:publish --tag='tests' --force
'testing' => [
...
'database' => 'testing',
...
],
modules:
enabled:
- Laravel5:
environment_file: .env.testing
APP_ENV=testing
APP_DEBUG=true
APP_KEY=
BASE_URL=
DB_HOST=localhost
DB_DATABASE=testing
DB_USERNAME=homestead
DB_PASSWORD=secret
CACHE_DRIVER=file
SESSION_DRIVER=file
php artisan migrate --database=testing
php ./vendor/bin/codecept run