How can I better organize my code in Laravel? [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I'm doing a project in Laravel, the view has already become so many #foreach and #if nested inside each other that I'm already confused which one closes (yes, I should have commented).
How now to find out what belongs to what, without raking it all over again? I am coding in PhpStorm.

One Place is Laracast. It's specially built for Laravel Devs. I can suggest you few good tutorials. One is Ten Techniques for Cleaner Code another is whipping monstrous code into shape & for cherry on top you can always read some Design patterns tutorials.

Related

I want to make an online recruitment website [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I want to make an online recruitment system(web) for my project in school. What are the language I need to learn except PHP. Thanks for the answer guys.
Not very proper question, you might find the answer by googling.
Anyway, You might need so far:
HTML: It will be like the skeleton of your page.
CSS: Basic knowledge would be a plus for understanding how to make it pretty.
MySQL: Unless you want a static page, you would need DB in order to save the data itself. Useful for manage cookies, sessions, users, etc.
My advice - Download some HTML free template and use it as base. Integrate it with PHP for DB connection and usage.

Web based chat between users in my web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like my users to able to chat with one another.
I currently use angularjs as the front-end and PHP in the back-end.
any ideas?
You should be looking at different languages for this. Node.js, MongoDB and Redis is a good start.
Also, just expecting people to give you code with such a vague request is not really in line with the spirit of things here. There are plenty of good examples online and a simple Google search would give you results like this https://github.com/joni2back/spachat if you're really keen on using PHP and Angular.

How to make a dynamic timeline using bootstrap? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm trying to make a dynamic timeline like facebook that can post pictures and descriptions with dates using mysql php for database. I put bootstrap because I like their design, and it's easy to use.
My problem is i don't know where to begin or where do I study it.
Here's an example of what I'm talking about:
Any suggestions?
What a generic question... this seems to me an impossible question to answer but maybe you need just some little advices to begin studying the right languages which you can use to achieve what you want.
First of all please provide an image of what you want to do and more important the fundamental languages that you have to know are HTML (obviously), CSS, Javascript and PHP for some server side script.
Talking specifically about your problem, here is where you can see some open examples with well commented code that allows you to understand everything.
http://www.jqueryrain.com/2015/05/ideabox-jquery-timeline-news-ticker/
http://www.jqueryrain.com/2014/11/vertical-timeline-css3-jquery/

Simple way to build an interface for a JSON response? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am mostly a backend guy and was assigned a task for a school project to build a simple interface out of a JSON object. Preferable a table that displays two nested values coming back from the JSON. Is there any easy way to build this with a GUI tool? The output can be in PHP or JS.
Thank you
You question is unclear, but I think you are asking if there are any pre-built HTML/CSS UIs. The answer is that there are many, and they are often referred to as "UI Frameworks" or "HTML/CSS Framworks".
The most common HTML/CSS frameworks are Bootstrap & Foundation, but my personal favorite is Semantic UI.
Each framework has its own unique features and bugs, but in most cases it comes down to personal preference.

Hidden features of the Lithium framework? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Since there isn't a lot of documentation out there, some features of the Lithium PHP Framework are not well known by the public. Are there any cool code features which I would miss if I just use the framework as shown in the docs?
Hey, thanks for asking. Most of what you can do with Lithium currently is documented at http://li3.me/docs/lithium and http://dev.lithify.me/drafts/source. However, with each new release we usually write a blog post highlighting some of the features that have been added and what you can do with them. Those can be found here: http://dev.lithify.me/lithium/wiki/blog.
Let me know if you need anything else, or have any other questions. As always, feel free to drop by #li3 on Freenode.
Filters are a huge benefit in Lithium. Notice how one would do "beforeSave" and "afterSave":
http://www.patrickjsparrow.com/php/beforesave-and-aftersave-in-lithium/

Categories