PHP code example of justustheis / kaish

1. Go to this page and download the library: Download justustheis/kaish 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/ */

    

justustheis / kaish example snippets


JustusTheis\Kaish\KaishServiceProvider::class

Cache::tags('views')->flush();

use JustusTheis\Kaish\Kaishable;

class Post extends Eloquent
{
    use Kaishable;
}



namespace App;

use JustusTheis\Kaish\Kaishable;
use Illuminate\Database\Eloquent\Model;

class Note extends Model
{
    use Kaishable;

    protected $touches = ['card'];

    public function card()
    {
        return $this->belongsTo(Card::class);
    }
}