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
Sorry for question but I don't understand that.
I have this:
<a #click.prevent="Submit(0)" href="#">NO</a>
<a #click.prevent="Submit(1)" href="#">OK</a>
Now in my vue method submit I want to post value 0 or 1 to my api and then store it in database. I have controller UserVote and model Vote. I am green here.
How my link should do? Where I post that? How I can upload that to db? I need just know, then I will be know everything.
You can create a method in VueJS that does a API request to some endpoint in your Laravel application. Just send the data to your endpoint and let the PHP controller handle the transmitting to the database.
Related
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 have a very simple question: when loading a web page the Page_Load function is called so that the page can be loaded. In this function can I insert some code that allows me to select and view in the browser the data present in an external database?
This answer could be of help.
You could then write a script that fetches data from a database. How you do that is a question in it self but I can recommend checking out w3schools which is good for learning plain Javascript in the beginning.
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 3 years ago.
Improve this question
I want to send a push notification from the web app to the android mobile app users using firebase.
Just for your information if you want to send notification for testing purpose then you can use FCM console which provides you a way to pass data payload.
But in case your need you can have your own server too where you can pass your own data and notification payload
Refer following URL for more information
https://firebase.google.com/docs/cloud-messaging/http-server-ref
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 do have a textarea element and I use angular for data-binding. I would like to capture the url in the string entered by the user, and generate a clickable live preview of that url. Any idea on how I can accomplish this using AngularJS or JavaScript? Just like Facebook.
Thanks!
You would need some server to do this for you.
You could either use a public service such as https://screenshotlayer.com/, https://www.url2png.com/
or You could run your own server with one of these libraries: https://github.com/brenden/node-webshot or https://github.com/vbauer/manet
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 am working on a Laravel project right now. I have a route www.website.com/auth/register. All I want is that when a hits this page, he should be asked for some credentials. If he inputs incorrect credentials, then he should not be able to see the registration page.
I have seen some web pages ask for authentication before we can see them. How is that achieved? I suppose those credentials are handled on the client side by the browser. Please help.
I think you're talking about the BASIC Authentication method, which exchanges credentials in plain text and is configured at the Web Server level.
Also, see this: https://security.stackexchange.com/questions/988/is-basic-auth-secure-if-done-over-https
http://laravel.com/docs/4.2/security#http-basic-authentication
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'm new to this and haven't saved html form data so far.
Can someone please guide about how to save the html form elements like first name, last name, password, email to sql database using javascript or jquery?
This can't be done directly. JS is executed by the client browser, and need a middleware to allow saving the data in a MySQL DB.
Here is a link to a tutorial on how to save data to a MySQL DB