I learned how to program in php years ago but i realised i was so outdated, but now im getting up to date. I'm working with Laravel now, only back-ending, so i just learned MVC model and all that stuff.
Me and my friend (who is a front end developer), we want to work together in a website using Laravel. so my question is.. how does this works?, a few questions to throw out there:
As you can see, i have no clue of how team-work comes together.
just out of curiosity.. how do you learn this? is there a working method detailed for this?
Do we both connect to the same server and work there?
No, you don't need to work on the same server during development, but you both have to work on the same codebase. Don't worry, you can use Git, SVN, or others to work on the same codebase in different computers easily. Finally you will have a single codebase which will be ready to deployed on online hosting.
Following are two simple guides to using Git as a Version Control System:
Git - The Simple Guide
CodeSchool - Try Git
What is Version Control System
How do we work together? he just care about views folder and that's it?
Not just views, but he can work in the views folder and in an another folder called the public folder which will contain your CSS, JavaScript and images. Most probably the front-end developer wont need to touch other parts.
Important: In order to work as a front-end developer in a Laravel project, some one needs to learn the syntax of Laravel Blade which is a template language for PHP and is extremely easy to learn.
Blade Templates - Laravel Docs
Simple Laravel Blade Templates - Scotch.io
He tells me the variables that he needs? for the views?
Mostly yes and vise versa, you will write your core logic in your models and will access them through your controllers, and then you can pass the variables from controllers to your views.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With