<?php
namespace CNRP\InstagramFeed\Filament\Pages;
use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;
class InstagramManager extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-camera';
protected static ?string $navigationLabel = 'Instagram Feed';
protected static ?string $title = 'Manage Instagram Feed';
protected static ?string $slug = 'instagram-feed';
protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';
public function mount(): void
{
}
protected function getHeaderActions(): array
{
return [
Action::make('refreshFeed')
->label('Refresh Feed')
->action('refreshFeed'),
];
}
public function refreshFeed(): void
{
// do something here
}
}
<?php
namespace CNRP\InstagramFeed\Filament\Pages;
use Filament\Pages\Page;
use Filament\Forms\Form;
use Filament\Actions\Action;
use Filament\Notifications\Notification;
use Illuminate\Support\Facades\Log;
class InstagramManager extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-camera';
protected static ?string $navigationLabel = 'Instagram Feed';
protected static ?string $title = 'Manage Instagram Feed';
protected static ?string $slug = 'instagram-feed';
protected static string $view = 'instagram-feed::filament.pages.manage-instagram-feed';
public function mount(): void
{
}
protected function getHeaderActions(): array
{
return [
Action::make('refreshFeed')
->label('Refresh Feed')
->action('refreshFeed'),
];
}
public function refreshFeed(): void
{
// do something here
}
}