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 | |
use Filament\Forms\Components\Builder\Block; | |
use Filament\Forms\Components\FileUpload; | |
use Filament\Forms\Components\Radio; | |
use Filament\Forms\Components\Textarea; | |
use Filament\Forms\Components\TextInput; | |
use Filament\Forms\Get; | |
use Tmx\Utils\Enums\Heroes; | |
use Tmx\Utils\Forms\Components\BlockSettings; |
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\Models; | |
use Awcodes\Curator\Models\Media; | |
use Cloudinary\Cloudinary; | |
use Cloudinary\Transformation\Format; | |
use Cloudinary\Transformation\Quality; | |
use Cloudinary\Transformation\Resize; | |
use Illuminate\Database\Eloquent\Casts\Attribute; |
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\Forms\Components; | |
use Filament\Forms; | |
use Illuminate\Contracts\Support\Htmlable; | |
use Illuminate\Support\HtmlString; | |
class Meta | |
{ |
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 ... | |
use Filament\Forms\Components\Actions\Action; | |
use Filament\Forms\Components\DateTimePicker; | |
use Filament\Forms\Set; | |
class NowAction extends Action | |
{ |
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
.fi-simple-main-ctn::before { | |
content: ''; | |
position: absolute; | |
inset: 0; | |
opacity: 0.90; | |
background-image: radial-gradient( | |
circle at top, | |
theme('colors.primary.300'), | |
theme('colors.transparent'), | |
theme('colors.transparent') 100% |
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 | |
public function fetchDataWithGraphQL(string $query, $variables = [], string $next = null): array | |
{ | |
$response = Http::withBasicAuth( | |
config('services.domain.username'), | |
config('services.domain.password') | |
)->post('https://www.domain.com/graphql', [ | |
'query' => $query, | |
'variables' => $variables, |
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 Database\Seeders; | |
use Illuminate\Database\Seeder; | |
use Illuminate\Support\Facades\Artisan; | |
use Spatie\Permission\Models\Permission; | |
use Spatie\Permission\Models\Role; | |
class PermissionSeeder extends Seeder |
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 | |
// Config file | |
... | |
'extensions' => [ | |
[ | |
'id' => 'hurdle', | |
'name' => 'Hurdle', |
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
public function show(Request $request) | |
{ | |
$slug = Str::of($request->getPathInfo())->rtrim('/')->afterLast('/'); | |
$page = Page::where('slug', $slug)->isPublished()->firstOrFail(); | |
if ($page->front_page) { | |
return redirect()->to(route('welcome')); | |
} | |
return view('page', [ |
NewerOlder