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.
Related
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.
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 need to have functionalities provided by Vue.js/React.js in Laravel.
Does Livewire replaces the above(Vue.js/React.js)?
Thanks
no its not exactly.
in old-fashion front end developing, backend sends Html codes to the client browser to render. it could be more feature rich using css and js and other assets.
some times its getting messy to mix server-side script with html, so tempting languages has been appeared. ex : blade
templating engine translate blade into php which produce Html
but it was 2 problems:
when a user navigate to another page. he had to load a lots of redundant data like site's header, footer, ...
from developer view, front-end developer had to develop some server-side coding, and they got coupled (server-side code with client-side code)
so a new method emerges:
Single Page Applications framework (like React and Vue), they were js codes which could get just new additional data for each page.
The web application with all html css ... remains and just another pages content get downloaded with the JS and replaced with content.
and it decoupled front-end code from back-end too.
but it could be a little harder to implement method for some developers which has not separated backend and frontend developer.
if a developer wanted to use this benefits (loading data simply with ajax)
it gets a little complicate for him and he had to learn ho to develop front-end component ....
LiveWire
Livewire is a new Technology that laravel offers that is easier for a backend developer to develop a front end with SPA Frameworks.
its simple as blade.
can be efficient data transferring with ajax calls
as long as it use module based component it can be reusable like react component
but:
its not going to decouple front-end with backend codes
it dosent provide all the features of SPA Framework like : routing,client MVC, ...
I name it of it just Blade instead of JSX
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
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
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 8 years ago.
Improve this question
I have a site made with SPRING mvc and jstl. It has a product catalog on it. Can any one give me some recomendations for making it SEO friendly ? I understand that google's spiders searches in the html pages. However, how do i help them index on what it´s on the database (mysql), like the products and some content ? should i read/do something extra ?
Thank you!
Open account with google webmasters: http://www.google.com/webmasters
Make your URIs SEO friendly Best way to create SEO friendly URI string
Write service that will create sitemap.xml file for your site. Sitemap should include all the pages that are not obvious to the indexing spider bots.