/** * @todo */ public function testKeyNotIncludesExtension() { $posts = PostRepository::all(); $posts->each(function ($post) { $this->assertFalse(!!preg_match('/\\.(md|markdown)$/', $post->key)); }); }
/** * Display a listing of the resource. * * @return Response */ public function index() { return \Response::json($this->portfolioRepository->all()); }
/** * HOME * Visulizar a view principal da home * * @return Response */ public function index() { $dados = ['portfolios' => $this->portfolioRepository->all()]; return view('home.index', $dados); }