To use fractal on your controller, extend the Controller first which is created by the fractal:init command.
Then call the tranform method povided by the Api Controller and pass the Sepcific tranformer class.
$this->transform(Post::all(), new PostTransformer);
$this->transform(Post::find(1), new PostTransformer);
The tranformer:create command will create the layout for your Tranformer in the App/Api/Tranformer Directory.