PHP code example of laravellegends / interactive-model
1. Go to this page and download the library: Download laravellegends/interactive-model 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/ */
laravellegends / interactive-model example snippets
namespace App\Models;
class User extends Model
{
protected $fillable = ['name', 'email', 'password'];
protected $hidden = ['password'];
}
bash
php artisan model:interactive User
bash
php artisan model:interactive App\\Models\\User