cheesecake441/filament-pexels

The best free stock photos, royalty free images & videos shared by creators, now available in Laravel Filament

v1.0.0 2025-06-17 19:34 UTC

This package is auto-updated.

Last update: 2025-06-17 22:53:16 UTC


README

The best free stock photos, royalty free images & videos shared by creators, now available in Laravel Filament

Pexels Search Form in Dark Mode Pexels Search Form in Light Mode

Installation

You can install the package via composer:

composer require cheesecake441/filament-pexels

You'll need to grab a pexels API key from https://www.pexels.com/onboarding/

Then add the key to your projects .env file:

PEXELS_API_KEY=""

Finally, paste the below into your projectsconfig/services.phpfile

'pexels' => [
    'key' => env('PEXELS_API_KEY'),
    'base_url' => 'https://api.pexels.com/v1/',
],

Usage

Usage in Admin Panel:

use Cheesecake441\FilamentPexels\PexelsImageUpload;

public static function form(Form $form): Form
{
    return $form->schema([
        ->PexelsImageUpload::make('image_path') 
    ]);
}

IMPORTANT: Make sure the name of the component matches the name of your image column (e.g. $record->image_path)

Check API Usage

$ php artisan pexels:usage

Credits

License

The MIT License (MIT). Please see License File for more information.