aboutsummaryrefslogblamecommitdiff
path: root/src/controllers/BotController.php
blob: 89aef8c64077983e46111321d922510ed1460e81 (plain) (tree)
1
2
3
4
5
6
7
     

                                               

                                            




                                               
                                 
                                         

                                   



                                                             
         
                                                             

         
<?php
namespace CamilStaps\BotleaguesApi\Controllers;

use CamilStaps\BotleaguesApi\Database\Bot;

class BotController extends BaseController {

	protected $bot;

	public function __construct(Bot $bot) {
		$this->bot = $bot;
	}

	public function index() {
		return $this->bot->all();
	}
	
	public function show($id) {
		return $this->bot->findOrFail($id);
	}

	public function update($id) {
		throw new \Exception("Not implemented yet.");
	}

	public function store() {
		throw new \Exception("Not implemented yet.");
	}

}