-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5f155a
commit 9b49d80
Showing
12 changed files
with
484 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Livewire\Profile; | ||
|
||
use Illuminate\View\View; | ||
use Livewire\Component; | ||
|
||
/** | ||
* Handles the experiments page in the user's profile section. | ||
*/ | ||
class ExperimentsPage extends Component | ||
{ | ||
/** | ||
* Render the experiments page view. | ||
*/ | ||
public function render(): View | ||
{ | ||
return view('livewire.profile.experiments-page') | ||
->layout('components.layouts.account-app'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default Pennant Store | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you will specify the default store that Pennant should use when | ||
| storing and resolving feature flag values. Pennant ships with the | ||
| ability to store flag values in an in-memory array or database. | ||
| | ||
| Supported: "array", "database" | ||
| | ||
*/ | ||
|
||
'default' => env('PENNANT_STORE', 'database'), | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Pennant Stores | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here you may configure each of the stores that should be available to | ||
| Pennant. These stores shall be used to store resolved feature flag | ||
| values - you may configure as many as your application requires. | ||
| | ||
*/ | ||
|
||
'stores' => [ | ||
|
||
'array' => [ | ||
'driver' => 'array', | ||
], | ||
|
||
'database' => [ | ||
'driver' => 'database', | ||
'connection' => null, | ||
'table' => 'features', | ||
], | ||
|
||
], | ||
]; |
28 changes: 28 additions & 0 deletions
28
database/migrations/2024_08_17_201439_create_features_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
public function up() | ||
{ | ||
Schema::create('features', function (Blueprint $table) { | ||
$table->id(); | ||
$table->string('name'); | ||
$table->string('scope'); | ||
$table->text('value'); | ||
$table->string('title')->nullable(); | ||
$table->text('description')->nullable(); | ||
$table->timestamps(); | ||
|
||
$table->unique(['name', 'scope']); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::dropIfExists('features'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.