No description or website provided.
PHP
Permalink
Failed to load latest commit information.
src added type annotation to hello world Oct 7, 2016
.gitignore
LICENSE remove references to laracasts / updated namespace to Tightenco Oct 3, 2016
composer.json starting artisan commands Oct 7, 2016
readme.md recommended laravel-elixir-elm readme Oct 7, 2016

readme.md

Render your Elm programs in Laravel

So you want to render an elm program inside a laravel application?

This package makes it easy.

Recommended: laravel-elixir-elm

Installation

Begin by installing this package through Composer.

{
    "require": {
        "tightenco/elm": "~1.0"
    }
}

And add the service provider to your application.

config/app.php

...
'providers' => [
    '...',
    Tightenco\Elm\ElmServiceProvider::class
];
...

When this provider is booted, you'll gain access to a helpful Elm facade, which you may use in your controllers.

use Elm;
...
public function index()
{
    return view('home', [
        'example' => Elm::make('example', [
            'name' => Auth::user()->name
        ])
    ]);
}

License

View the license for this repo.