PHP code example of otiteca971 / laravel-elm
1. Go to this page and download the library: Download otiteca971/laravel-elm library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
otiteca971 / laravel-elm example snippets
use Elm;
...
public function index()
{
return view('home', [
'example' => Elm::make('example', [
'name' => Auth::user()->name
])
]);
}