Skip to content

Commit

Permalink
Merge pull request #6 from shojibflamon/feature/upgrade-3.2
Browse files Browse the repository at this point in the history
feat: Upgrade to Filament 3.2 & Fixed some typos
  • Loading branch information
Shipu authored Mar 12, 2024
2 parents ef92a54 + 972a5e9 commit de1a393
Show file tree
Hide file tree
Showing 23 changed files with 2,183 additions and 1,038 deletions.
14 changes: 8 additions & 6 deletions app/Filament/Pages/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ class Login extends BasePage
public function mount(): void
{
parent::mount();

$this->form->fill([
'email' => '[email protected]',
'password' => '12345678',
'remember' => true,
]);
if (app()->environment('local')) {
$this->form->fill([
'email' => '[email protected]',
'password' => '12345678',
'remember' => true,
]);
}

}
}
2 changes: 1 addition & 1 deletion app/Filament/Widgets/CategoryChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CategoryChart extends ApexChartWidget
*
* @var string
*/
protected static string $chartId = 'categoryChart';
protected static ?string $chartId = 'categoryChart';

protected static ?int $sort = 2;

Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Widgets/TransactionChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TransactionChart extends ApexChartWidget
*
* @var string
*/
protected static string $chartId = 'transactionChart';
protected static ?string $chartId = 'transactionChart';

protected static ?int $contentHeight = 300;

Expand Down
13 changes: 8 additions & 5 deletions app/Providers/Filament/AdminPanelProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
use Jeffgreco13\FilamentBreezy\BreezyCore;
use Leandrocfe\FilamentApexCharts\FilamentApexChartsPlugin;

class AdminPanelProvider extends PanelProvider
{
Expand Down Expand Up @@ -62,11 +63,13 @@ public function panel(Panel $panel): Panel
])
->profile()
->sidebarCollapsibleOnDesktop()
->plugin(
BreezyCore::make()
->myProfile(hasAvatars: true)
->enableTwoFactorAuthentication()

->plugins(
[
FilamentApexChartsPlugin::make(),
BreezyCore::make()
->myProfile(hasAvatars: true)
->enableTwoFactorAuthentication()
]
)
->tenant(model: Account::class, slugAttribute: 'id', ownershipRelationship: 'owner')
->tenantRegistration(RegisterAccount::class)
Expand Down
Loading

0 comments on commit de1a393

Please sign in to comment.