Skip to main content

Code Examples of spatie/spatie.be

Discover how to use Laravel's spatie/spatie.be examples.

19 examples

Blade components

Files in this example

  • resources/views/components/label.blade.php
    • resources/views/front/profile/profile.blade.php
View all examples

Custom validation rules

Files in this example

  • app/Rules/MatchingLicense.php
    • app/Http/Api/Requests/Activations/ShowActivationRequest.php
      • resources/views/components/field.blade.php
View all examples

Local scopes

Files in this example

  • app/Models/Ad.php
    • app/Jobs/RandomizeAdsOnGitHubRepositoriesJob.php
View all examples

Send email

Files in this example

  • app/Actions/HandlePurchaseAction.php
    • app/Mail/PurchaseConfirmationMail.php
View all examples

Collection Methods: Filter

Files in this example

  • app/Services/GitHub/GitHubApi.php
View all examples

Collection Methods: Push

Files in this example

  • app/Support/MediaLibrary/FileSizeOptimizedWidthCalculator.php
View all examples

HTTP client

Files in this example

  • app/Support/FreeGeoIp/FreeGeoIp.php
    • app/Models/Purchasable.php
      • app/Support/PPPApi/PPPApi.php
        • app/Console/Commands/UpdateConversionRatesCommand.php
View all examples

Enum

Files in this example

  • composer.json
    • app/Models/Enums/TechnologyType.php
      • app/Models/Technology.php
        • app/Nova/Technology.php
View all examples

Laravel/socialite

Files in this example

  • composer.json
    • routes/web.php
      • app/Http/Controllers/AppleSocialiteController.php
        • app/Providers/AuthServiceProvider.php
          • resources/views/auth/login.blade.php
View all examples

Blade directive

Files in this example

  • app/Providers/ViewServiceProvider.php
    • resources/views/front/pages/vacancies/partials/offer.blade.php
      • config/app.php
View all examples

Testing

Files in this example

  • tests/Feature/GitHubAds/RandomizeAdOnGitHubRepositoriesJobTest.php
View all examples

Livewire

Files in this example

  • app/Http/Livewire/ActivationsComponent.php
    • resources/views/front/pages/products/livewire/activations.blade.php
      • resources/views/front/pages/products/partials/purchasedLicense.blade.php
View all examples

Lazy collection

Files in this example

  • app/Console/Commands/GiftRayToSponsorsCommand.php
View all examples

Singleton

Files in this example

  • app/Services/Vimeo/VimeoServiceProvider.php
    • app/Services/GitHub/GitHubServiceProvider.php
View all examples

Mock / mockery

Files in this example

  • tests/Actions/UpdateVideoDetailsActionTest.php
View all examples

Signed url

Files in this example

  • routes/web.php
    • resources/views/front/pages/products/partials/purchasedProduct.blade.php
View all examples