Laravel ships in with some handy artisan commands which we use at different stages of our project. Some of them are more frequent like make:controller to create a controller and make:model to create a model and many more like this. But there may be requirement for some more commands which will be time saving for our project. Continue reading
How to develop packages in Laravel
I have been using Laravel for quite some time and just love the framework. There have been times when I had to integrate packages into my project based upon requirements. I had realized that instead of integrating packages from web, can we build the same thing? The answer is a BIG YES. Continue reading
Managing Files in Laravel
When dealing with user related data, many times we find they want to upload files. Laravel makes this easier to manage. Let’s discuss these one by one.
How to get uploaded file information:
$file = Input::file('photo');
Continue reading
Creating 5 columns layout with Twitter Bootstrap
Bootstrap can be really helpful in designing your website. It gives you so many predefined rules which you can easily follow to have clean, beautiful, responsive layouts. But sometimes you may feel that it’s lacking some feature like having a 5-columns grid system. No worries, we can easily create this.
First we need to create default column definition the way that Bootstrap does and lets call it col-..-20 like col-xs-20, col-sm-20, col-md-20, col-lg-20.
Continue reading
How to use raw queries in Laravel
Laravel is an awesome framework. It provides you flexibilities for development. Once you realize it’s cool features, you will just love the framework. One such cool feature us using raw queries. You might wonder what’s new here. But this is really helpful when you want to use raw expressions like aggregate functions. Continue reading