I've been trying to make a mobile app which uses an API to fetch resources. So far, so good. Now I need to make the website and I want to use the same API.
The API is built on the top of Slimframework and illuminate/database. So I'm wondering is it good to use Laravel for something that has no connection to the database directly?
For example, components such as Auth will require to supply a different driver and etc.
Would you recommend using Laravel 4.2 for this kind of purpose? What kind of advice can you give me?
It's time to switch now laravel 5.0. I would recommend you to use Laravel for your purpose.
Yes, that is ok, try using Laravel 5 instead 4.2
Related
I have an application built out in Laravel 5.2 with a mySQL DB, I'm trying to find a way to integrate React as the frontend framework with the version of Laravel I currently have. Is this possible?
Yes it is possible.
You can find more information in the official react docs:
https://reactjs.org/docs/add-react-to-a-website.html#add-react-in-one-minute
Definitively possible. You would be creating 2 apps: React for the front end and PHP/Laravel as an API for the data that your react app uses.
I was wondering if the use of a database is necessary on Laravel or I can build an app without database.
I have researched throughout but there is no clear indication of these nor on the Laravel documentation website or other places, it is just vague.
Thanks
Of course you can use Laravel without a database. You can read and save data using remote RESTful API, files etc or you can do not use any data layer at all. Laravel will work just fine.
Also, you can use pretty cool SQLite library which allows you to save all info to a single file. Laravel supports it out of box.
I already built a web application using Yii and my client gave me a white labeled application that is built using Laravel 5. I wanted to convert the Laravel codes into Yii codes but it is very difficult, though it is possible(maybe), but it will take too long.
I was thinking that maybe it will be good if I install Laravel inside Yii framework. Is that possible? if not maybe you have suggestions?
Your help will be greatly appreciated!
Thanks! :)
Both frameworks depending on the database tables so you can integrate both solutions and make database bridge, But there is noway currently to make integration between the router in both framework.
This extension allows running Yii2 and Laravel applications simultaneously at the same project, facilitating graceful migration from Yii2 to Laravel.
This is what you need mate Link
Hi guys I'm new with Laravel and I want to use it to build a REST API and the routing is just great my only problem now is the database , I read that Laravel only supports just four database systems http://laravel.com/docs/database#configuration and I need to use IBM DB2 , so is there any alternative to this? I mean like another library and if is possible to integrate with this framework. (I'm not using ODBC)
You can swap out Eloquent and use Doctrine which supports DB2.
Doctrine is on composer so can be easily loaded.
I need a Codeigniter login library for user authentication. I use MongoDB as my database.
I have gone through some of the recommended libraries like Ion Auth, Tank Auth, DX Auth etc. but all use mysql databases.
Is there a recommended library which uses mongodb as a database?
I began converting one of the libraries above from mysql to mongodb insetions but it is getting too complex- many changes are needed and think I will end up messing it. Need help on a good library using mongodb.
Looks like https://github.com/benedmunds/CodeIgniter-Ion-Auth (Ion Auth) has now a MongoDB support. See the README section on GitHub.
I don't think any use it natively, but before you go converting things yourself you may want to check out this answer I made to a similar (non-dupe) question: oAuth and Codeigniter with MongoDB
It will get you started on a conversion with little work needed. I'd also recommend using ion auth, tank auth is huge and DX auth is outdated.