laravelarticle / laravel-electron Goto Github PK
View Code? Open in Web Editor NEWMaking Laravel desktop application using Electron Js
Making Laravel desktop application using Electron Js
Hi
I got problem with accessing resources in laravel and electron.
GET http://127.0.0.1:8000/public/css/app.css net::ERR_ABORTED 404 (Not Found)
GET http://127.0.0.1:8000/public/js/app.js net::ERR_ABORTED 404 (Not Found)
I tried to access asset files like css and js in public folder using {{ asset('public/css/app.css') }}
function but i got error 404
I tried all these ways:
asset('public/css/app.css')
url('public/css/app.css')
mix('css/app.css')
example:
<link rel="stylesheet" href="{{ asset('public/css/app.css') }}" />
but same results
how can i access resources in public folder?
Hi,
Thank you for such a great tips.
I'm wondering, if I put my project inside www
folder, and then start developing, then if my Laravel Application has a new update, is there anyway I could send that updated to built Electron App?.
Will it show any popup to require user to update the current app with my new version of Laravel Application?.
I've tried searched for it, but it is only update the ElectronJS itself.
Thank you.
Please explain how to upgrade PHP version comes with the package
in the electron js Package
Got This Warning in terminal and app doesn't work !
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
Error: connect ECONNREFUSED 127.0.0.1:2892
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1128:14) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 2892
}
Because of PHP, for what I see this won't work as desktop application outside of Windows.
I was thinking, maybe it can be used, in main.js, instead of the node js PHP package, a copy of a builded PHP like the one extracted by https://php-osx.liip.ch/, if the operating system is macOS or Linux.
After making PHP working, it would be necessary to run the PHP with the built-in server.
I don't know if this will also work after packaging the application.
In short, if we include a standalone PHP copy, and check for the operating system, maybe this would work for all operating systems. Yes?
https://github.com/jaceju/node-php-server
It clearly says that it has been depricated. Can we rely in such package for production apps ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.