در حال بارگذاری ...

Anonymous Migration Classes0:00

All right, this next one is a pretty small tweak, but it's still something to be aware of. If we have a look at our migrations directory, you'll notice that all of your migration stubs no longer have traditional class names. So in the past, this might have been class CreateUsersTable. But now as part of Laravel 9, the name is superfluous. So instead, they switched over to anonymous classes. And yeah, of course, this will be true for any migrations that you create. So if we create a posts table, because it's always posts, and we switch back, of course, you'll see here, it follows the same format. So yeah, like I said, you can't get much smaller than this, but still, it's something you should be aware of.

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟