Skip to content

Conversation

emmadesilva
Copy link
Member

@emmadesilva emmadesilva commented Sep 13, 2024

https://herd.laravel.com/docs/1/extending-herd/custom-drivers

Hopefully we can get this added to https://herd.laravel.com/docs/1/extending-herd/supported-frameworks

Also would be great to use data from hydephp/hyde#293

We could potentially add a command to install the Valet driver stub to Herd

The driver must be saved to ~/Library/Application\ Support/Herd/config/valet/Drivers

@emmadesilva
Copy link
Member Author

Can also update the x-server: Hyde/RealtimeCompiler header to append (Herd) if we are running through Herd

@emmadesilva
Copy link
Member Author

@emmadesilva
Copy link
Member Author

Depending on how easy it is to install, and if we need an Artisan command, we may just download the stub then if we don't want to bundle it here.

@emmadesilva
Copy link
Member Author

emmadesilva commented Apr 26, 2025

I wonder if something could be injected into the autoload, like a bootstrapper here, that way nothing needs to be installed. It's hacky but would work like magic

http://develop.test/

Warning: require(/Users/caen/Dev/develop/packages/realtime-compiler/bin/vendor/autoload.php): Failed to open stream: No such file or directory in /Users/caen/Dev/develop/packages/realtime-compiler/bin/server.php on line 7
Something went really wrong!
An error occurred that the core exception handler failed to process. Here's all we know:

Initial exception:
Auxiliary exception:
Error Object
(
    [message:protected] => Failed opening required '/Users/caen/Dev/develop/packages/realtime-compiler/bin/vendor/autoload.php' (include_path='.:')
    [string:Error:private] => 
    [code:protected] => 0
    [file:protected] => /Users/caen/Dev/develop/packages/realtime-compiler/bin/server.php
    [line:protected] => 7
    [trace:Error:private] => Array
        (
            [0] => Array
                (
                    [file] => /Applications/Herd.app/Contents/Resources/valet/server.php
                    [line] => 167
                    [function] => require
                )

        )

    [previous:Error:private] => 
)

@emmadesilva emmadesilva force-pushed the herd-valet-support branch from 611f199 to df650cf Compare May 24, 2025 19:09
@emmadesilva emmadesilva changed the title Add Herd Valet support Add Experimental Herd Valet support May 24, 2025
@emmadesilva emmadesilva changed the title Add Experimental Herd Valet support [4.x] Add Experimental Herd Valet support May 24, 2025
@emmadesilva emmadesilva force-pushed the herd-valet-support branch from fb28893 to 8e07fba Compare May 24, 2025 20:19
@emmadesilva emmadesilva marked this pull request as ready for review May 24, 2025 20:20
@emmadesilva emmadesilva merged commit dd4172f into master May 24, 2025
1 check passed
@emmadesilva emmadesilva deleted the herd-valet-support branch May 24, 2025 20:20
@emmadesilva
Copy link
Member Author

Also want to say that this works with Vite, just run npm run dev!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant