Compare frameworks: spring mvc, struts2, zend, laravel [closed] - laravel

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 must complete the comperation table below. I've searched and filled a few but i'm not sure about my answers.
Can you help me check them?
Thanks so much.
comperation table

I am working on Laravel from the last 5 years, so I can give my perspective on that. According to me, Laravel is easy to learn and fast to develop a framework.
They have artisan commands to create your basic structure very fast.
Routing - Laravel has now categorized routes according to their area, like web routes, API routes and console routes. so you can easily differentiate your routes according to their use.
Database - As you said Eloquent, it is enough powerful. you can use the DB facade as well.
HTML JSON & Image Rendering - Laravel uses a blade template engine so their helpers come very handy. e.g. #yield or #include, now they have even #slots.
helpers are available for assets.
Login - just enter one command basic login structure is ready for you. from registration to forgot password. make::auth command is there. it even creates basic database tables for you. you can override it as well. Authentication Quickstart
ACL - You are free to write your own middlewares.Middleware laravel

Related

Vue pagination with laravel backend difficulties with filtering [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 days ago.
Improve this question
I have a laravel app with a vue 2 front end. I paginated 6000 records however whenever I use the search box feature, or drop downs to filter, I am only able to get the results on the same page and not others on a different page. It comes back as "no data found". I use axios.
How would I go about solving this?
Thank you!
I tried using a different axios call specifically for this but to no avail.

Proper implementation of the Laravel bundle from Vue? [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 9 months ago.
Improve this question
How to use Laravel with Vue. I know how to make an API on Laravel and on the front to output data using Vue. Here's how to make partial use of Vue. For example, a project similar to Booking.com. On the main page, everything is static except for the Ajax input "Where to go". Is it possible to implement this input as a Vue component and place it in a blade template? Also tell me how you would implement it?
If you're familiar with both Laravel and Vue and want to have one monorepo for your project, you can try inertiaJs: https://inertiajs.com
Personally, I would split the project and put the API backend in one repo and the VueJS frontend into another repo. In my opinion this should make your code cleaner and you will not be tightened with some limitations of inertia.

App like Kahoot; Laravel Sanctum or Passport? [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 2 years ago.
Improve this question
I want to build a game-app like kahoot, for fun! :)
This will be an app where guests can either register and create a game or just get invited and enter the created game with a PIN. Then they can answer all kinds of questions.
It will be a SPA structured application. Laravel based with Vue on the frontend.I was already thinking of using an ecosystem like Laravel Echo or maybe something like Pusher for websockets.
However, I am puzzled when thinking about what authentication method to use. What authentication would be better in this case? Either Laravel Sanctum or Passport? What would be the benefits and disadvantages of these methods to use? What would you recommend? They both look pretty good options to me. However, I don't want to get stuck at a certain point because I have chosen the wrong kind of auth-method.
I'd love to hear your thoughts about the issue.
Thank you!
If you're using Laravel 7 or higher, I recommend installing Sanctum, it's light weight and is super flexible with VueJS.
But, if it's a big project, use the Passport, it has more features.
See this video from Andre Madarang maybe it helps you out.
https://www.youtube.com/watch?v=D9oIu6jiYLk
But, if you know spanish see this from Aprendible:
Part I - https://www.youtube.com/watch?v=mAdp3lpdNfo
Part II -
https://www.youtube.com/watch?v=Lzm_7ymlgAU
Part III - https://www.youtube.com/watch?v=6mrhs68JOFQ

Let users edit their Laravel 5.6 blade view files [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 4 years ago.
Improve this question
What are the risks of letting users edit their laravel blade views in order for them to edit the theme they are using?
Each user will have a folder created for them in the views folder containing their template made of blade.php files. There they can edit the html and access the $php_variables to display. Or is there a better way?
Thanks
First off all there is the risk that your user creates vulnerabilities unintentionally. In example, if he does not escape an output correctly, another user could inject a malicious script (XSS) and then exploit your application. For laravel, this could happen by using {!! !!} instead of {{ }}.
Then there is the risk that your users wants to exploit your application himself by adding malicious code. Since blade templates are php files, he could do anything. And don't forget that he could execute javascript too.
Without knowing any more, it is hard to find a better solution. Depending on what your application is supposed to do, you should adapt the security.
For max security, i would filter the submitted content and delete all javascript and php, except for {{}}. For {{}}, check that the variables inside are allowed (create a list with allowed variable). Also make sure that he can not execute any other code inside the {{}}.
Block any external (and maybe even internal) link calls, since an attacker could load malicious script from another server/source. This goes for <img>, <link> etc... And no, it is not enough to simply block some file extensions.
Please read the blade doc and make sure any other way for code execution is blocked, i.e.
#php
//
#endphp
If you want to create such a filter, check out this link, maybe it will help you to start. Please do a lot of research in order to be sure that you application is secure. And don't forget to secure the rest of you application too ;-)
Also check out the OWASP PHP Security Cheat Sheet
EDIT: Of course there are several other ways to handle this. You could review each template yourself (if there are limited users), you could let the user choose between multiple templates (no edit), you could block all php&javascript and use "shortcodes" which you then replace by your controlled php code(basically your own template engine) etc.

Hosting two sites within single Joomla cms [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Is it possible to host multiple websites that all have one single/common CMS (Joomla)?
Thanks.
Joomla offers a CMS to run a website on. Joomla uses mysql databases that just hold the information that will be shown on the content pages at the front. The way it is supposed to be used you won't be able to run multiple sites on a single cms.
You can't run 2 websites with different content on that single cms, but you can create multiple front ends on one cms. You could for example store your data using joomla and get it shown at the front using your own code. This way you will be able to have two interfaces / websites on one cms, both running on the same data.
So from what I read in your question I think the answer will be NO, unless you want to just apply another presentation to your data.
My own experience: I have used Joomla to just hold news articles that my web-master will add. I just used php to get those news-articles out of the mysql database and did that to make sure i could get my own presentation for the data displayed.
I actually beg to differ with those people that were so quick to say "NO!!" As of joomla version 1.5.x there are some components that allow you to do just that, most of them being commercial but there's also http://www.janguo.de/lang-en/Downloads/func-finishdown/31/ which is free at the moment. As of joomla version 1.6.x multiple sites will be integrated into joomla.
If what you need is to have several domains that point to the same Joomla (and to the same content) the answer is YES (see #S.Mark's answer).
If you want to use the same Joomla installation for two different websites (with different content), the answer is NO.
An alternative is to use some Joomla extension, such as:
http://extensions.joomla.org/extensions/core-enhancements/multiple-sites/5550
Yes you can, we have done this before. What you need to do is to have two databases though. We have just written about running multiple Joomla websites on the same Joomla installation. Hope you'll find it useful...
With CNAME record, you could able to mirror a web site to 2+ domains.

Resources