PHP code example of inani / nova-resource-maker

1. Go to this page and download the library: Download inani/nova-resource-maker 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/ */

    

inani / nova-resource-maker example snippets


/**
 * Get the posts
 *
 * @relation('HasMany')
 * @return \Illuminate\Database\Eloquent\Relations\HasMany
 */
public function posts()
{
    return $this->hasMany(Post::class);
}
bash
php artisan nova-resource-fields:generate