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 OllieChild; | |
function enqueue_custom_child_block_styles() { | |
// Scan our styles folder to locate block styles. | |
$files = glob( get_stylesheet_directory() . '/assets/blocks/*.css' ); | |
foreach ( $files as $file ) { |
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\Traits; | |
use Filament\Facades\Filament; | |
trait HasTenantAwareSessionKeys | |
{ | |
public function getTableFiltersSessionKey(): string | |
{ |
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 Illuminate\Console\Command; | |
use Illuminate\Support\Facades\Storage; | |
class CopyToS3Command extends Command | |
{ | |
protected $signature = 'storage:mirror |
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 Illuminate\Console\Command; | |
use Illuminate\Support\Arr; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Str; | |
use Symfony\Component\Console\Helper\ProgressBar; |
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\Actions\Media\UpdateMediaInfoAction; | |
use Illuminate\Console\Command; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class UpdateMediaInfoCommand extends Command | |
{ |
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\Jobs; | |
use App\Actions\Media\UpdateMediaInfoAction; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; | |
use Illuminate\Queue\Attributes\DeleteWhenMissingModels; | |
use Illuminate\Queue\InteractsWithQueue; |
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\Actions\Media; | |
use Exception; | |
use FFMpeg\FFProbe; | |
use Illuminate\Support\Facades\Log; | |
use Spatie\Image\Image; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; |
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\Observers; | |
use App\Actions\Media\UpdateMediaInfoAction; | |
use App\Jobs\UpdateMediaInfoJob; | |
use Illuminate\Support\Facades\Log; | |
use Spatie\MediaLibrary\MediaCollections\Models\Media; | |
class MediaObserver |
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 App\Filament\Resources\LinkResource\Pages; | |
use App\Models\Link; | |
use AshAllenDesign\FaviconFetcher\Facades\Favicon; | |
use Filament\Forms; | |
use Filament\Forms\Form; | |
use Filament\Forms\Set; |
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 | |
/** | |
* Redirect job ads to their parent page if they are not published. | |
* | |
* @link https://developer.wordpress.org/reference/hooks/template_redirect/ | |
* @link https://developer.wordpress.org/reference/functions/is_404/ | |
* @link https://developer.wordpress.org/reference/functions/get_queried_object_id/ | |
* @link https://developer.wordpress.org/reference/functions/get_post_meta/ | |
* @link https://developer.wordpress.org/reference/functions/get_post_status/ | |
* @link https://developer.wordpress.org/reference/functions/wp_get_post_parent_id/ |
NewerOlder