Create dynamic site - how to proceed using Laravel?
I need to create a website that features dynamic content and fetches data from a database, etc. It will rely on lots of buttons, lots of sections created with button clicks and user input forms. I will (probably) need custom class and id names for a lot of these things. And I'll be needing some JavaScript to enhance real-time dynamicness for certain aspects of the site.
My question to you is: How do I do this using Laravel? My previous experience with PHP is just to create various methods and echo HTML tags and content onto the site. Does Laravel have specific methods to handle this (which are capable of custom id:s, class names, buttons, etc). What is the approach here?
@tomo_pongrac
I don't really have the time to sit through a ton of videos. I've inherited a Laravel project for work and I need to build this aspect of the website that should be dynamic. I know how to do it using normal php. I know how to do the JavaScript part. I just don't what exactly Laravel brings to the game. Can I just add normal php to my Laravel view file and do it the "old fashioned way" if I can't manage to learn how Laravel does it?
@adense yes, you can. But the templating in laravel is pretty nice in comparison. If you try and add code like that to an existing laravel project you'll get no thanks down the line. Have a skim of the quickstart and get the basics and see how it feels.
I can just add some more info about what it is that I need to create. My site will have an "Add" button. This will append a new content section to the page. That content section will have several sub-sections and buttons that, when clicked, open a modal which in turn can be used to specify data that should be added as new sub-sections within the first section.