Skip to content

Instantly share code, notes, and snippets.

@rizkhal
Last active February 22, 2020 06:07
Show Gist options
  • Save rizkhal/146420b0ed3d1104f8faef397d4d1205 to your computer and use it in GitHub Desktop.
Save rizkhal/146420b0ed3d1104f8faef397d4d1205 to your computer and use it in GitHub Desktop.
<?php
namespace App\Repositories;
interface PostRepositoryInterface {
public function all();
public function take(int $limit);
public function paginate(int $limit);
public function save(array $request);
public function find(string $slug);
public function update(string $slug, array $request);
public function delete(string $slug);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment