database migration based on php artisan create resource