@@ -5,7 +5,7 @@ |
||
| 5 | 5 | use Faithgen\Miscellaneous\Models\Contact; |
| 6 | 6 | use Faker\Generator as Faker; |
| 7 | 7 | |
| 8 | -$factory->define(Contact::class, function (Faker $faker) { |
|
| 8 | +$factory->define(Contact::class, function(Faker $faker) { |
|
| 9 | 9 | return [ |
| 10 | 10 | 'first_name'=>$faker->firstName, |
| 11 | 11 | 'last_name'=>$faker->lastName, |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('fg_f_a_q_s', function (Blueprint $table) { |
|
| 16 | + Schema::create('fg_f_a_q_s', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150)->primary(); |
| 18 | 18 | $table->enum('category', ['website', 'app', 'channel', 'general'])->default('general'); |
| 19 | 19 | $table->string('question'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('fg_subscriptions', function (Blueprint $table) { |
|
| 16 | + Schema::create('fg_subscriptions', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150)->primary(); |
| 18 | 18 | $table->string('email')->unique(); |
| 19 | 19 | $table->boolean('confirmed')->default(false); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('fg_contact', function (Blueprint $table) { |
|
| 16 | + Schema::create('fg_contact', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('id', 150)->primary(); |
| 18 | 18 | $table->string('first_name'); |
| 19 | 19 | $table->string('last_name'); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'miscellaneous'); |
| 45 | 45 | |
| 46 | 46 | // Register the main class to use with the facade |
| 47 | - $this->app->singleton('miscellaneous', function () { |
|
| 47 | + $this->app->singleton('miscellaneous', function() { |
|
| 48 | 48 | return new Miscellaneous; |
| 49 | 49 | }); |
| 50 | 50 | |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | use Illuminate\Support\Facades\Route; |
| 7 | 7 | |
| 8 | 8 | Route::prefix('contact-us') |
| 9 | - ->group(function () { |
|
| 9 | + ->group(function() { |
|
| 10 | 10 | Route::post('', [ContactController::class, 'contact']); |
| 11 | 11 | }); |
| 12 | 12 | |
| 13 | 13 | Route::prefix('faqs') |
| 14 | - ->group(function () { |
|
| 14 | + ->group(function() { |
|
| 15 | 15 | Route::get('', [FAQController::class, 'index']); |
| 16 | 16 | }); |
| 17 | 17 | |
| 18 | 18 | Route::prefix('subscriptions') |
| 19 | - ->group(function () { |
|
| 19 | + ->group(function() { |
|
| 20 | 20 | Route::post('', [SubscriptionController::class, 'create']); |
| 21 | 21 | Route::get('{subscription}/{email}', [SubscriptionController::class, 'approveSubscription']); |
| 22 | 22 | }); |