Category:: Laravel

Laravel download files via FTP

This post is going to be about downloading files from remote server via FTP mechanism in your Laravel application. Let’s create a controller called DownloadController.php Now let’s inform about this controller […]

How to generate deep link with PHP

Branch is providing deep linking SDK by using it we can generate deep links for web, IOS and Android. This deep links provides seamless experience for mobile users especially. The coolest thing, which generate smart deep […]

MySQL views

MySQL has supported database views since version 5.x. Views are pretty useful if you want to refer to values calculated from expressions without writing the expressions each time you can retrieve them. What is a view A […]

How to filter a PHP array by key?

PHP array_intersect_key() function returns an array containing all the entries of primary array which have keys that are preset in all the arguments. This function computes the intersection of arrays using keys for comparison. […]

How to connect to MySQL from the command line

The MySQL database is one of the well know database engine, which uses a client-server architecture. The server, mysqld is the program that actually manipulate the database. In order to talk to server, we use a client […]

Encrypt and Decrypt files using PHP

In my recent project I have implemented PDF file encryption and decryption. In this project, data is very sensitive so to protect files from unauthorized access and to keep them safe and secure we have used file based […]

Create REST API with the Laravel 5.3

This tutorial provides an example of building a complete RESTful API using Laravel 5.3.* Framework. You gonna use the different HTTP methods during the REST api development, quick introduction about each method. GET to […]

DomPDF Library using Codeigniter 3

In this tutorial we will discus about how to generate PDF using DOMPDF with Codeigniter Framework version 3 and composer(PHP dependency manager). From the authors of Dompdf – Dompdf is an HTML to PDF converter. At […]

MySQL Sub Queries

I this post I would like to write about sub queries. A Sub-query is also a query, which is defined under a main query and embedded within the WHERE clause . It always sends a value to its nearest main query. Sub-query […]

Laravel 5 Pagination with array

Laravel provides pagination for Eloquent results out of the box, but for custom data we need to do the pagination manually. In this tutorial, I’ll use Laravel5 LengthAwarePaginator class to show you how you can create […]

how to get the CI’s base url in JavaScript

I received a tutorial requests from my reader that asked to me how to access CI’s base url inside the JavaScript/external JavaScript files. Editing base url of the project after each and very deployment is very frustrating […]

Coming up in laravel 5.3

Laravel5.3 is coming with following new features, 1. Rollback one migration 2. Blade Foreach Loops (new $loop variable) 3. Eloquent Collections are cleanly serialized and re-pulled by queued jobs 4. Queue console output […]