Laravel is a PHP application - PHP is an interpreter language.
Android and iOS apps are applications are mostly written in a compiled language like Java or C/ObjC/C++/C#.
Apps are not how PHP is working. PHP parses files and creates answers depending on what is needed (mostly HTML pages or JSON responses in Laravel terms) and ends its execution. Without an interpreter (php, php-cli, ...) those scripts won't even work
Apps are a bit different - it would take some time to explain these circumstances, so I have to make it short. Apps are compiled (so can be used at any time in the runtime framework).
@twaileit Okay. But there should be a tools were we could able to install on Android/IOS that will run on a browser. Otherwise programming on Web will be obsolete if we don't have diversity in terms of running in all platforms.
@donpuerto you just need a "full screen browser" app with a predefined url... So you would create your PHP app, host it on any server and load the URL directly within your "app" (which essentially is just a web view component)...
The "One click" option could be also done via a bookmark, though.
I am developing mobile app with Native Script ( JS + Css + Xml ) mobile application development platform... It's easy to use and understand if you know web technologies...
You can use Laravel as back-end service API and you can develop you application with {NS}
of course, and having s many prebuild modules laravel makes it sweet.
think about laravel as the cloud where all data in your aps get saved,
think about the apps as clients consumimg web services that provides your apps content.
Being more precise you can use multiplatform apps made with javascrip frameworks like angularjs encapsulated in cordova or use native languages for each platform.
Laravel its perfect to acomplish all this, for apps consuming web services you allways need a server a sort of a database and a server programming language.
What you could do is write apps with a simple webview and develop an api with laravel to support the front end. It is done all the time but I am not a believer in doing. It just costs too much just to say you have a native app. You can simulate a native app with current tools and proper manifest caching.
I used a tool called website2apk which "compiles" your Laravel app (or any web based language) into APK format. In it's "compiled form" it uses my webserver which hosts the web version as an API.
It looks and feels like an Android app and it's in APK format. After a few hours of playing around I uploaded it to Google Play Store successfully. I write alot of PHP and other web languages but never learnt anything Android related as it seemed rather daunting although this process was a breeze.
It is quite awesome to have an APK to send to your friends or upload to GP Store. Feel free to contact me if you would like any info on the process or to get a feel of how the app performs search for FoodTrees on Google play or FoodTrees.org.
Hope this helps speeding up the process for anyone wanting to get an app published without having to go through the hassle of learning any native languages.
I´d like to know more about Laravel APPS... we are actually developing in Xamarin.. and I want to explorer the posibility to use laravel to develop Android and IOS apps... can you send me and e mail please So I can contact you?
A webview app (ie: it loads your Laravel app like a browser would but the user doesn't get any other browser features. So if they want to refresh, they'll need to click a button you created to refresh.)
With Firebase for notifications.
And some other options like ads via AdMob.
For me, this is exactly what I need seeing as Flarum is a SPA. Hope this helps someone else out there.
@JeffreyWay I'd love a Laracasts mobile app ;) Would also make for a great tutorial. I've wanted to do this for years but (clearly) I was too lazy to really research it :P
hey every one you can create progressive web app for your laravel website.it will convert your website to android or ios app from add to home screen feature.read chrome documentation for further details.
@donpuerto If you’re looking to use Laravel for a mobile app, you can consider building the application with Flutter. Within Flutter, you can load a WebView of your Laravel application. To ensure a smooth user experience, make sure your Laravel app is responsive so it displays well on mobile devices.