ホーム > Laravel > Recommended Methods for Learning Laravel and What Not to Do
Laravel

Recommended Methods for Learning Laravel and What Not to Do

Thank you for your continued support.
This article contains advertisements that help fund our operations.

Summarized methods recommended for learning Laravel and what not to do.

⇨ Click here for the table of contents for Laravel articles

Memorization is the key to learning Laravel

Laravel is a framework for the PHP programming language.

Even though you may not be familiar with frameworks, it's okay to think of them as "templates."

By "memorizing" how to write code according to the template, you can learn Laravel.

Just memorizing won't make you write good code, but at the beginning, it's important to focus on memorizing.

⇨ For more in-depth information about Laravel, check out this article

Specific methods for learning Laravel

When using a book for learning

This book is highly recommended.

By actively working through this book, you can "memorize" Laravel.

It may take time at first, but progress little by little until you complete it.

Reasons why this book is recommended

This book is extremely easy to understand.

For beginners who have just started programming or are challenging a framework for the first time, it allows you to start your studies with low hurdles.

By completing one application step by step, you can learn Laravel's features comprehensively.

Key points for learning Laravel

It's crucial to actually work along with the learning materials

This is very important.

It is essential to actually work hands-on and make the code run just like in the book, rather than just reading the book.

Don't get discouraged during the environment setup

Setting up the environment is the "most frustrating point."

This is true for all programming, and the biggest obstacle always comes at the beginning.

It would be a waste to give up and abandon the learning process at this point.

If you get stuck during the environment setup, try searching for the error messages verbatim in the following article or through Google.

⇨ How to install Laravel 8 simply

⇨ How to check Laravel's version

Learn about authentication (login/register)

With Laravel, you can implement authentication (login/user registration) with a single command.

In the initial learning stages, being able to authenticate with a command is sufficient.

⇨ Implementing email verification with Laravel 6 Auth (VerifyEmail)

⇨ How to change the redirect after logging into Laravel

Learn about CRUD

CRUD stands for Create, Read, Update, Delete.

In other words, learn how to save and delete data.

⇨ [Beginner-friendly] How to create a posting feature in Laravel (like a bulletin board)

Learn how to create a database

With Laravel, you can create a database using migration files.

Once you can create a database using this feature, you're good to go.

⇨ How to create a database in Laravel using migration

Learn about relationships

Relationships refer to linking data together.

For example, let's say one user can make multiple posts.

In that case, instead of entering the user's data in each post, you can save only the user's ID in the post and retrieve the user's information from another source based on that ID. This process is called a relationship.

⇨ How to create a one-to-one relationship in Laravel.【hasOne】

⇨ Create and display a one-to-many relationship in Laravel【hasMany】

It's impossible to memorize everything, so while following along with videos, try to understand where in the video the explanation is and work hands-on like in the video.

What not to do when learning Laravel

Don't rush through a book

When you start with a book, set a deadline for your goal and try to finish it in one go.

Books may have a lot of pages and feel time-consuming, but in reality, there aren't that many tasks.

For frameworks, it's crucial to memorize before understanding, so prioritize progressing through the book rather than fully grasping the meaning of the text.

Reflect on the content of the book

Forgetting what you've previously learned is natural.

Be sure not to redo what you've already completed.

It's crucial to remember what you've learned, as it will be essential for future opportunities.

  • If the same opportunity arises, you can implement that part

Focus on finishing one book before moving on to another.

What to do after finishing a book

After finishing a book, start building your own application.

This will become your portfolio, showcasing your work.

Create something you want to build.

What you gain by starting something you want to build

By starting to build what you want, you'll truly start to learn programming.

In the beginning,

  • you might feel stuck and confused

But everyone goes through that phase.

Since Laravel is a memorization subject, you can't do something you haven't memorized yet.

This might become the second point where people give up, but it's also the point where you level up after completing the learning materials and the fastest way to improve.

Continuing with the book won't help you achieve this level.

You'll deepen your understanding by clearing up the questions that arise when attempting to build the things you want.

What to do if you get stuck when starting to build?

First, search for help. Search for things like,

  1. "Laravel what you want to do"
  2. "Laravel error message"

Roughly look through about five articles to find something that suits you and try it.

⇨ How to debug in Laravel

Ask questions on Q&A sites

If you don't understand something, ask about it.

There's a free programming Q&A site called Teratail.

Ask questions there.

The key to asking is to provide:

① What you want to achieve (overview of the error) ② Current screen ③ Error message ④ Relevant current code

These are essential, and you can add additional information if needed. Don't worry about harsh answers from some respondents; post your questions!

Express your struggles on Twitter

You might receive some helpful opinions.

It's not embarrassing to admit you don't understand something, so feel free to express your struggles.

By the way, the more you do, the more things you won't understand! It's inevitable!

Seek a mentor

There's a service called "Menta."

It's a platform for matching people who want to learn programming and those who want to teach.

It's not cheap, but it's a worthwhile investment for creating a portfolio within a defined period of one to two months for projects.

Things to watch out for in a mentor

  • Pushes SES excessively and tries to get you a job

This person is likely focused on job placement.

They may not be genuinely supporting you, but rather aiming to place you in a job to earn a commission, so it's safer not to choose such a person.

  • Someone else actually teaches you

You may want to be taught by someone with an impressive background, but in reality, they may just attract clients and have someone else teach you.

The person teaching you may not necessarily have an impressive background, so it's safer to choose another person.

  • High subscription fees while promoting course materials

No matter how high the cost, all you need to learn is "display," "save," "update," and "delete."

Educational materials like

are sufficient.

There are often cases where mentors who promote such materials deliver poorly constructed materials, leading to regrets.

Materials sold on solid platforms, such as books and video courses, are well-made, so it's best to avoid paying high prices for course materials.

Conclusion

That's all.

If you found this helpful, please share it on Twitter!

Feel free to contact me via DM on Twitter for feedback or complaints about the article.

Please Provide Feedback
We would appreciate your feedback on this article. Feel free to leave a comment on any relevant YouTube video or reach out through the contact form. Thank you!