1. Go to this page and download the library: Download inmanturbo/futomaki 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/ */
inmanturbo / futomaki example snippets
use Illuminate\Database\Eloquent\Model;
use Inmanturbo\Futomaki\HasCsv;
class Post extends Model
{
use HasCsv;
protected $schema = [
'id' => 'id',
'title' => 'string',
'content' => 'text',
];
protected function csvFileName()
{
return 'posts.csv';
}
protected function csvDirectory()
{
return storage_path('csv');
}
}