1. Go to this page and download the library: Download jokersk/sonata 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/ */
jokersk / sonata example snippets
use Sonata\Traits\LetsPlaySonata;
class SomeTest extends TestCase
{
use LetsPlaySonata, RefreshDatabase;
...
}
$this->create(Post::class);
$post = $this->create(Post::class)->getCreated();
public function comments()
{
return $this->hasMany(Comment::class);
}