1 year ago

Tinker won't detect migration class

Posted 1 year ago by AlexanderKim

For example, if i have a migration class:

class CreateServicesTable extends Migration { ... }

Then i try in tinker:

new CreateServicesTable;
PHP Fatal error:  Class 'CreateServicesTable' not found in Psy Shell code on line 1

Is there a way to access migration's class using tinker? I want to access up & down methods.

Please sign in or create an account to participate in this conversation.