Skip to content
This repository was archived by the owner on Jan 1, 2021. It is now read-only.

Commit ea3246e

Browse files
committed
Fixed: Discord config missing.
1 parent 61161f5 commit ea3246e

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

config/generators.config.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Where the templates for the generators are stored...
8+
|--------------------------------------------------------------------------
9+
|
10+
*/
11+
'model_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/model.txt'),
12+
13+
'scaffold_model_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/scaffolding/model.txt'),
14+
15+
'controller_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/controller.txt'),
16+
17+
'scaffold_controller_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/scaffolding/controller.txt'),
18+
19+
'migration_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/migration.txt'),
20+
21+
'seed_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/seed.txt'),
22+
23+
'view_template_path' => base_path('vendor/xethron/laravel-4-generators/src/Way/Generators/templates/view.txt'),
24+
25+
26+
/*
27+
|--------------------------------------------------------------------------
28+
| Where the generated files will be saved...
29+
|--------------------------------------------------------------------------
30+
|
31+
*/
32+
'model_target_path' => app_path(),
33+
34+
'controller_target_path' => app_path('Http/Controllers'),
35+
36+
'migration_target_path' => base_path('database/migrations'),
37+
38+
'seed_target_path' => base_path('database/seeds'),
39+
40+
'view_target_path' => base_path('resources/views')
41+
42+
];

config/laravel-restcord.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return [
4+
5+
// Your application's bot token
6+
'bot-token' => env('DISCORD_BOT_TOKEN'),
7+
8+
// Whether or not an exception is thrown when a ratelimit is supposed to hit
9+
'throw-exception-on-rate-limit' => env('DISCORD_USE_EXCEPTIONS', true),
10+
11+
// Class to be invoked when a webhook has been created
12+
// replace this with your owner handler implementaton or add an IOC binding for this class
13+
'webhook-created-handler' => \LaravelRestcord\Discord\Webhooks\HandlesDiscordWebhooksBeingCreated::class,
14+
15+
// Class to be invoked when a bot has been added to a guild
16+
// replace this with your owner handler implementaton or add an IOC binding for this class
17+
'bot-added-handler' => \LaravelRestcord\Discord\Bots\HandlesBotAddedToGuild::class,
18+
];

0 commit comments

Comments
 (0)