So you want to render an elm program inside a laravel application?
This package makes it easy.
npm i --dev laravel-elm
Begin by installing this package through Composer.
And add the service provider to your application.
'providers' => [
When this provider is booted, you'll gain access to a helpful Elm facade, which you may use in your controllers.
public function index()
return view('home', [
'example' => Elm::make('example', [
'name' => Auth::user()->name
View the license for this repo.