for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Flaviozantut\Storage\Posts\PostRepositoryInterface;
class PostController extends \BaseController
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function __construct(PostRepositoryInterface $post)
$this->post = $post;
}
/**
* Display a listing of the resource.
*
* @return Response
*/
public function articles()
$current = Input::get('page', 1) - 1;
$articles = array_chunk($this->post->all('article'), Config::get('skorry.paginate'));
if (!count($articles)) {
$data = (new \Parsedown())->parse(\File::get(base_path().'/readme.md'));
return View::make('hello', compact('data'));
if (!array_key_exists($current, $articles)) {
App::abort(404);
$articles = $articles[$current];
$paginator = Paginator::make($articles, count($this->post->all('article')), Config::get('skorry.paginate'));
return View::make('posts.articles', compact('articles', 'paginator'));
public function get($type, $permalink)
$article = $this->post->find(['permalink' => $permalink]);
if ($article->type != $type) {
return View::make('posts.post', compact('article'));
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.