1. Go to this page and download the library: Download asb/morphmtm 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/ */
asb / morphmtm example snippets
php artisan mtm:build category
What is the Model Name [Category]:
>[enter]
What is the Model Plural Name [categories]:
>[enter]
What is the Model Relation Name [categoryable]:
>categorizable //Here the default name of the relationship is not good, and we changed it.