Laravel for Django developers, part 1

By | February 5, 2016

Project Structure

After setting up the quickstart project, I feel the project structure is quite different to Django. In Django a lot of code are organised in “app” domain, but it seems to me that multi-app is not something out-of-the-box in Laravel:

Instead, it seems the apps in Django is more similar to the “Service Providers” in Laravel.


While working on the quickstart project in Laravel, it seems to me that Eloquent doesn’t generate initial migratios based on model definition.

In Django, you define the model, then by running “makemigration” CLI command, it will generate initial migration files to create the database table for that model.

According to the quickstart project, it seems to be things work the other way around, you will have to manually create the migration files by running

And then create the model class by running

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.