0
Php

WP-CLI – The Command Line Tool For WordPress

Probably the WordPress is one of the most used CMS and blogging platform on the web and also it’s probably the most criticized one in the PHP community as well, because the way it works but not sure about that so pardon me if I’m wrong. Anyways, so whatever it’s but it has dominated the […]

4
Php

Laravel-5.0 And Routing

Well, Laravel version 5.0 has some major changes in it’s folder structure and it’s really better than before. The new structure separates the Http Layer (The delivery mechanism of a web application) and inside the app directory there is a new Http folder which contains three folders, Controllers, Middleware, Requests and the routes.php file. As […]

0
Php

Laravel – 5.0 And Middlewares

In Laravel-5.0 we can now use Middlewares instead of filters such as before but Middlewares are not new and was available in Laravel-4 as well. In version-4 if we need a Middleware then we may use a custom Middleware by creating a class and implementing the HttpKernelInterface interface, for example in laravel-4 we can create […]

2
Php

Laravel Tips – Generate Tablular Data With Actions

It’s a very common task in any web application to make a listing of models/records with actions related with them. Probably it’s not clear what I mean. Let’s see it below: Hope it’s clear now. So, it’s a common task in any web application with a backend where an admin can add, edit or delete […]

8
Php

Laravel Tips – Update and Persist Config on Runtime

As we all know that Laravel has provided an elegant way to setup application’s configuration using Config class which uses local file system. Using this component we are able to setup our application’s configuration and also we can get any value on runtime and can update it but it’s not persistent. It means, if we […]

1
Php

Laravel Tips – Automatic Input Filtering

Todays topic is about how to filter user inputs automatically to remove commas (thousand separator) before validating. Going to share the way I solved the problem. So, a few days ago I was working on a project of mine where I had to develop a web based accounting software for a travel agent. So I’ve […]

5

What The Heck Is Hack

Well, first of all it has nothing to do with hacking but it’s a new open-source programming language developed by FaceBook team which is based on PHP and runs on HHVM (Hip Hop Virtual Machine), the FaceBook’s virtual machine which also supports PHP as well. Hack: a new programming language for HHVM announced by FaceBook […]

2
Php

Laravel – From Eloquent To JavaScript Object

Often we may need to pass variables from server side to client for using it in a JavaScript file or in a global script. It’s possible to write JavaScript code from server side script, for example, we may use something like this: echo “”; This will generate something like this: So, we can use it […]