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
<?php | |
// namespace and more... | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot(): void | |
{ | |
// Bind our implementation | |
$this->app->bind( |
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
<?php | |
namespace App\Http\Middleware; | |
use Filament\Billing\Providers\Http\Middleware\VerifySparkBillableIsSubscribed; | |
use Filament\Facades\Filament; | |
class VerifyProjectIsBillable extends VerifySparkBillableIsSubscribed | |
{ | |
public function handle($request, $next, $subscription = 'default', $plan = null) |
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
<?php | |
namespace App\Filament\Resources; | |
// use ... | |
class FeedbackResource extends Resource | |
{ | |
// ... rest of the class |
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
<?php | |
// Custom HasPagination interface | |
namespace App\Http\Integrations\GithubApi\Contracts; | |
use Saloon\Http\Request; | |
use Saloon\PaginationPlugin\Paginator; | |
interface HasPagination |
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
<?php | |
namespace App\Console\Commands; | |
use App\Models\Project; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
use Spatie\Browsershot\Browsershot; | |
class GenerateOpenGraphImage extends Command |
NewerOlder