Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the ways to learn laravel

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "what are the methods of learning laravel". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Seven tips for learning Laravel more efficiently

With the development of the community, many ready-made resources have emerged to help you learn Laravel. It looks good, doesn't it? But how do you choose the best one? In other words, which is more suitable for you and helps you learn more efficiently? In the face of the ever-improving framework of Laravel, I believe you have also raised these questions. Here are seven suggestions to help you learn Laravel more effectively.

Some of these tips apply only to learning Laravel, while others apply to learning any programming language or framework.

1. Seriously, don't start with the official documentation #

The first thing a novice usually does is look at the official documentation of Laravel. The title party, don't get me wrong, the Laravel document is quite powerful! However, it is probably the author of the document who more or less expects the reader to know something about PHP's ecosystem and modern tools.

For example, the first part of the document is installation, but it is not just "download and install". You must know how to use Composer, how to use a terminal or command line, how to run commands, how to make a Web server work, and so on.

two。 Learn PHP, object-oriented, Terminal and Composer# first

It sounds like fun to learn, but I see more and more people who want to learn Laravel don't start with PHP first. It's like people who want to use jQuery but don't learn any JavaScript. The existence of the framework is not to bring you a shortcut to learning, but to keep your feet on the ground and start with the basics.

To start learning any modern PHP framework (Laravel, Symfony, or others), you need to be proficient in using PHP. Especially object-oriented programming. All frameworks are written in object-oriented patterns, and you need to be fluent in using classes, objects, properties, methods, dependencies, traits, and other "keywords".

In general, I recommend that you create at least one simple project that uses pure PHP instead of any framework. Only in this way can you better understand PHP and make more effective use of the functions within Laravel.

In addition, in my opinion, it is Composer that makes PHP more powerful. Knowing Composer will let you know how to take full advantage of Laravel dependencies, which is an important part of modern PHP development.

There are also terminals, namely the Terminal of the OS system and the cmd of the Windows system. Similarly, modern PHP frameworks use commands to perform most functions, such as generating code, installing libraries, changing settings, deploying runs, and so on. You must understand the basics.

All of the above is what you need to know before you start Laravel. Do you see a sudden pussy here? Don't be afraid! This is just the beginning of the suggestion.

3. Books, courses or videos? Free or paid? #

The question that many people ask first when learning one thing: is there the best way to get started? Everyone chooses differently. Some people like to learn by reading, while others prefer video lessons that are intuitive and easy to understand. Either way is good. But the premise that what you are looking for should be relatively stable and structurally reasonable. Instead of looking for random articles or videos from YouTube, it won't give you the results you want. You need the author to explain these things consistently. Otherwise, it may be easy for you to get confused and fail to understand further lessons.

This is also the fundamental difference between free courses and paid courses. Some people say that you only need to look up more information on the Internet when you learn to program, because there is a lot of free information on it. This is true, but if you choose to learn this way, you will have to spend a lot of unnecessary time putting it together. Paid courses or books are usually the best, because the content is specially prepared for your convenience, so you don't need to spend your time looking for it. If you can stand on the shoulders of giants, why not? )

Here are three resources I recommend:

Laravel Up & Running-- A book written by Matt Stauffer

Laravel from Scratch-Laracasts series of videos

Get Started With Laravel 5-Tutsplus course

The above are all foreign learning resources, English is not good? Don't be afraid, you can still understand it on your head. Of course, there are also domestic resources:

Introduction to Laravel-- A Chinese course written by Summer & Li Jinfa (Aufree) in the Laravel China community

As for the book on how to learn PHP better, @ overtrue Anzhengchao always recommends a book called "going deep into PHP: object-oriented, patterns and practices."

(of course, there are more and better books, and I hope more willing people can recommend one or two.)

4. Stop reading and write bug #

It is impossible to learn any programming without typing the code and writing bug. Don't spend too much time reading books or watching videos, start typing as soon as possible. In fact, coding exercises should begin immediately after completing each lesson or reading each chapter.

In general, I recommend that you create a test project in the learning process, which makes the process not only more realistic, but also more motivational. Without a proper goal and a certain purpose, it is emotionally difficult to continue to study theory.

If you only write code, you will encounter obstacles and a lot of questions to ask. By meeting problems and overcoming them, your knowledge expands to become a real developer. Just put a little more patience into it and take out the fighting spirit to upgrade and brush the copy! )

5. Learn to use Google and StackOverflow#

Although not directly related to Laravel, this is important. Can't you do Baidu? Hurry up, Google, go! It is not difficult for programmers to find a ladder. Do you know the difference between Google and Baidu? I don't know? Then go to Google!

StackOverflow is an IT technical question and answer website related to the program. Usually when you search for a solution to a problem on Google, the first batch of content to be searched is usually from StackOverflow.

So here comes the question! Will you ask questions? Haha, you may question "what is meant by asking questions". It is recommended that you take a look at the intelligent Chinese version of the questions first.

In general, each forum and community has its own culture, rules, and behavioral expectations, such as community posts and management norms of the Laravel China community. And when you are in the technology community, you can not only read the technical posts posted by others, you can also ask questions in the right way and style. If you are polite, patient and respectful, you will have more chances to get help from Daniel.

6. # find a mentor #

The biggest problem with learning programming is that you don't know how to troubleshoot problems when something doesn't work. The best solution to this problem is to ask for help from others. On the importance of finding a god to help you!

Where should you find a mentor? In your social circle, both offline and online. Brothers and sisters at school or Daniel on the community forum, believe me, as long as they are not busy and your questions are not too stupid, they will be happy to help you. Of course, the channel is to find your own, ask questions in the community, or privately trust them.

7. # Don't give up #

As mentioned in the previous tip, it's easy to give up learning when you encounter a problem that you can't solve. Maybe that's why so many people start learning, but in fact only a few become professional developers. There will not always be rainbows and butterflies, this road will always be full of problems. Difficult questions, self-doubt, and even the idea of throwing your computer out of the window. However, every developer is going through all this, and it never stops. Trust me, no matter what happens, all you have to do is keep going, keep going, keep going. When you start to be creative, when you can easily realize what's on your mind, you'll know it's all worth it.

Finally, when it comes to continuous progress, my final advice is not to let the gap between study and rest be too long. Keep learning new things every week or even every day. It's like a kind of exercise, and if you miss a day, it's hard to get the rhythm back. (only keep on learning, keep on learning, is the king.)

This is the end of the content of "what are the methods of learning laravel". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report