PHP code example of jakjr / keeper

1. Go to this page and download the library: Download jakjr/keeper library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jakjr / keeper example snippets


class KeepController extends BaseController {

    private $keeper;

    function __construct()
    {
        $this->keeper = App::make('keeper', [$this]);
    }

    public function index()
    {
        return View::make('keep.index')
            ->with('keeper', $this->keeper);
    }

    public function keep()
    {
        $this->keeper->keep(Input::only(['name', 'page']));
        return Redirect::back();
    }
}