From f0cdb5f902a485dae6e5811b17b1e30fba057c2f Mon Sep 17 00:00:00 2001 From: antonioribeiro Date: Fri, 7 Jun 2024 10:12:11 +0000 Subject: [PATCH] Prettify code --- src/Models/TwillFeatureFlag.php | 10 +++++++++- ...024_06_04_114937_add_public_available_for_twill.php | 3 +-- src/resources/views/admin/form.blade.php | 2 +- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/Models/TwillFeatureFlag.php b/src/Models/TwillFeatureFlag.php index 8cb9a42..10025aa 100644 --- a/src/Models/TwillFeatureFlag.php +++ b/src/Models/TwillFeatureFlag.php @@ -20,7 +20,15 @@ class TwillFeatureFlag extends Model { use HasRevisions; - protected $fillable = ['published', 'title', 'description', 'code', 'publicly_available', 'ip_addresses', 'publicly_available_twill_users']; + protected $fillable = [ + 'published', + 'title', + 'description', + 'code', + 'publicly_available', + 'ip_addresses', + 'publicly_available_twill_users', + ]; /** * Save the model to the database. diff --git a/src/database/migrations/2024_06_04_114937_add_public_available_for_twill.php b/src/database/migrations/2024_06_04_114937_add_public_available_for_twill.php index 6aaf780..4a07a6b 100644 --- a/src/database/migrations/2024_06_04_114937_add_public_available_for_twill.php +++ b/src/database/migrations/2024_06_04_114937_add_public_available_for_twill.php @@ -4,8 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration -{ +return new class extends Migration { /** * Run the migrations. */ diff --git a/src/resources/views/admin/form.blade.php b/src/resources/views/admin/form.blade.php index b3551fd..7751dac 100644 --- a/src/resources/views/admin/form.blade.php +++ b/src/resources/views/admin/form.blade.php @@ -12,7 +12,7 @@ 'label' => 'Publicly available', ]) - @if(features_can_be_public_on_twill()) + @if (features_can_be_public_on_twill()) @formField('checkbox', [ 'name' => 'publicly_available_twill_users', 'label' => 'Publicly available for users logged in Twill',