| 1 | <?php namespace Modules\Blog\Http\Controllers\Api; |
||
| 9 | class TagController extends Controller |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var TagRepository |
||
| 13 | */ |
||
| 14 | private $tag; |
||
| 15 | |||
| 16 | public function __construct(TagRepository $tag) |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Display a listing of the resource. |
||
| 23 | * |
||
| 24 | * @return Response |
||
| 25 | */ |
||
| 26 | public function index() |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Show the form for creating a new resource. |
||
| 33 | * |
||
| 34 | * @return Response |
||
| 35 | */ |
||
| 36 | public function create() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Store a newly created resource in storage. |
||
| 43 | * |
||
| 44 | * @param CreateTagRequest $request |
||
| 45 | * @return Response |
||
| 46 | */ |
||
| 47 | public function store(CreateTagRequest $request) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Find the resource by name |
||
| 56 | * |
||
| 57 | * @param $name |
||
| 58 | * @return Response |
||
| 59 | */ |
||
| 60 | public function findByName($name) |
||
| 64 | } |
||
| 65 |