Ionic with laravel as backend concept [closed] - laravel

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 3 years ago.
Improve this question
I'm confused because i've heard that we create an api using Laravel and could use Ionic to call the api and access the database. As Laravel and Ionic are created in a separate folder, do we have to publish both of them online? I mean if i just publish ionic, then how does ionic communicate with Laravel when Laravel isn't being publish ? and if so,it means we have develop both an app and a website right ? Thanks in advance

You would have IONIC as a mobile application calling your RESTAPI (Laravel) through AJAX.
Think about it as two separate projects. IONIC is your frontend and Laravel is your backend.
Ideally your API would be published on the same level as your IONIC app. If you are planning to use your IONIC app only on a local network then the API have to be published on that local network. If you are planning to use your IONIC app on the "internet" then your API should be published to internet access.
On a side note: Wherever you publish your API you should strongly consider Laravel Passport to protect you API.
I also recommend reading Fielding's REST Paper to have better understanding about REST.

Related

Laravel Sanctum vs Passport [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
What are the differences between these 2? And which one is better for a simple VueJS app?
I've read their documents a few times but still confused.
Thank you very much.
Passport provides a full OAuth2 server implementation for your Laravel application in a matter of minutes. It is therefore necessary to have a brief knowledge of OAuth2.
Sanctum it is a simple package to issue API tokens to your users without the complication of OAuth. Sanctum uses Laravel's built-in cookie based session authentication services.
In a small application use Sanctum. it's simple and easy.

Where is a better place to place Laravel Migration? [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 3 years ago.
Improve this question
I'm creating an erp with laravel + larvel nova, a rest api with laravel and frontend with vuejs. My doubt is: where should i build my database migration as better practice, should i put my migration in my erp project or in my api rest project. Both will use the same database.
My suggestion is to create your migration in Rest Api beacuse api most work is in database and you want to give data(which is in Database) to user in most cases with Api!

How do I find out what project is connected to Youtube data API service based on the project number? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 4 years ago.
Improve this question
I got an email stating that my project(s) hasn't accessed or used the YouTube Data API Service in the last 60 days and if it's inactive for another 30 days they'll disable access to the API. The project is referenced only by a number, and I have no idea what the "project" is or how to find it based on that number.
I have had the same email. I eventually found the Project by stumbling my way to this part of my Google Account, so you should find the Project in your Google Account using the same link:
https://console.developers.google.com/apis/
In my case the Project relates to the Wordpress Plugin "YouTube Lyte":
https://wordpress.org/plugins/wp-youtube-lyte/
I installed this Plugin on a Wordpress self-hosted blog some years ago.
I have no idea why my Google Developer Console identifies me (ie. my Google Account) as the "Owner" of the "YouTube Lyte" api.
I will see if I can get any clarification via the YouTube Lyte Plugin Support Page:
https://wordpress.org/support/plugin/wp-youtube-lyte
This is not my highest priority at the moment so someone else might get there first - and maybe kindly post an answer here?
Liz

Questions about Laravel API-Centric app [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 6 years ago.
Improve this question
I am new to APIs. I want to make an API-centric Laravel web app and an Android app. They will use private API.
I am not sure how to make the user auth for the API. I have read many articles about JWT and many more about OAuth2 but I am still not sure which one to use and how to actually make it.
I recommend that you read through this very digestable book - https://apisyouwonthate.com/. It helps with the theory and the implementation of an API in Laravel. Although the code is specifically for Laravel 4, virtually everything in the book is still helpful.
Starting in Laravel 5.2, the framework has been providing support for token authentication and web form authentication right out of the box. https://www.laravel.com/docs/5.3/passport

Bitcoin implementation with laravel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am new in Laravel. I have to use Bitcoin for checkout page. Can anybody help me how to integrate Bitcoin in laravel framework.
The Blocktrail PHP SDK works with Laravel, in fact there's an example project to get you started: Simple Block Explorer
Their API supports payments and webhooks as well as plain blockchain data, check out their API documentation: https://www.blocktrail.com/api/docs
Update 1
I've added an additional example project - a personal wallet for receiving and making payments (with an integrated block explorer). The project demonstrates the payment api as well as the webhooks api.
See it here: Simple Bitcoin Wallet App
As far as I am aware, there is no library setup for Bitcoin payment processing in Laravel, however the API for Coinbase (https://www.coinbase.com/docs/api/overview) is pretty decent, and shouldn't be too hard to implement yourself.
<form action="/create_payment" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key=pk_test_6pRNASCoBOKtIshFeQd4XMUh
data-image="/square-image.png"
data-name="Demo Site"
data-description="2 widgets ($20.00)"
data-amount="2000"
data-currency="usd"
data-bitcoin="true">
</script>
</form>

Resources