PHP code example of binary-cats / laranote

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

    

binary-cats / laranote example snippets



use BinaryCats\Laranote\HasManyNotes;

class User extends Model

    use HasManyNotes;


$user->note('This is a note content');

$user = User::find(2);

$user->addNoteAsUser($user, 'This is a note content');
 bash
php artisan vendor:publish --provider=BinaryCats\\Laranote\\LaranoteServiceProvider --tag=migrations
 bash
php artisan vendor:publish --provider=BinaryCats\\Laranote\\LaranoteServiceProvider --tag=config