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 […]

152
Php

Laravel – Using Repository Pattern

Laravel is one of the most popular PHP MVC frameworks and taking the Php community rapidly than any other frameworks probably couldn’t do and it’s because of a great combination of power, extensibility and easiness. The framework provides so many ways to a developer to develop an application using one or another, depending on the […]

9
Php

Laravel – Useful RenderSections Method In View

In Laravel PHP MVC Framework, to send content back to the browser one must use a return keyword from a controller with the rendered content, like: return View::make(‘home.index’); This is a very simple example and very common in any Laravel application and any developer knows what is this code for, obviously any developer means a […]

4
Php

Laravel – Route Matched Event

In Laravel there is a nice way to listen for many events, built-in and custom events, simply using code like this: Event::listen(‘event_name’, function($object) { }); We can register event listeners. In Laravel documentation on their website, mentioned about Application Events and also about Custom Events (defined by user). There are also some special events available […]

92

Bootstrap 3 – One Delete Confirm Dialog For All

There is no need for a brief about twitter bootstrap, we all (web developers) know what is it and we also know the benefits for using the twitter bootstrap in any project. Recently version – 3 of twitter bootstrap has been released and there are some changes has been made in the new version and […]