PHP code example of daniellefence / notes

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

    

daniellefence / notes example snippets


use DanielleFence\Notes\Models\Note;

$model->notes()->create([
    'body' => 'This is a note.',
    'user_id' => auth()->id(),
]);

$notes = $model->notes; // returns all notes associated with the model