Browsed by
Category: Illuminate

Web Services: Slim Framework + Eloquent(Laravel)

Web Services: Slim Framework + Eloquent(Laravel)

Setting up the Restful API is easy with Slim Framework & Eloquent(Laravel). Here are the steps: Install required components via composer – Slim Framework + Eloquent(Laravel) Create a database called web_services and create users table. Setting up Eloquent Setting up Routes Final Touch Install the necessary components using composer – create a composer.json and save it in a working directory and run composer install. We’re creating a simple web services for Users – Simple CRUD. Create a database called web_services…

Read More Read More

Quick Development: Slim Framework + Illuminate(Laravel)

Quick Development: Slim Framework + Illuminate(Laravel)

Create a project folder and add a composer.json file in it and paste the following codes, and run composer install. You should have Slim Framework, Twig, Illuminate(Laravel) in the project folder. Add a index.php file in project folder and copy paste the following: Create a folder named models in the project folder and add the following into a file named Article.php: Don’t forget our .htaccess file in a project folder. 🙂 Now you can navigate to your system, for example:…

Read More Read More