Create
Tools
Account
Free & open source
On GitHub
Resources
Community
Platform
Open Source
Nicholas Wekesa
May 27th, 2020
May 27th, 2020 09:52 AM
I have some javascript code within my view in laravel and i am trying to fetch an external php class within the Javascript. How do i do this in Laravel?
const merchantURL = " **THE PHP CLASS URL COME IN HERE**";
May 28th, 2020 07:33 AM
You have to build something like a API with Lravel and write your merhods in JS.
Or .. give Laravel-Livewire and AlpineJS a shot ;-)