Showing posts with label Composer. Show all posts
Showing posts with label Composer. Show all posts

Monday, April 3, 2017

Beginning Laravel Video Course

Here is something unusual I did apart from programming. My first ever video course "Beginning Laravel" with Packt Publishing



In this course you will learn about basics of Laravel Development. First section is about installation of Laravel. This section will start with introduction of Laravel and installation of Laravel in Mac, Windows and Linux. Then we will cover, basics of Laravel including, understanding of Framework Structure, basics of Artisan Commands, Composer, Core Concepts of Laravel, MVC structure, Database Migrations, Laravel Controllers, Models and Views etc. In last section
We will finish this course by creating simple Web application with Laravel which will have CRUD operations and basic validations in final section, this will help you getting started with Laravel Development. If you are interested in learning Laravel then this is the course you are looking for. You can buy it at following link.


Beginning Laravel Video Course



Hope you will like this course. Let me know your feedback in comments.

Saturday, February 25, 2017

Laravel: Failed to connect to 192.241.224.13 port 80 on OSX

Recently I was trying to create new Laravel application with Laravel installer, it was not working and it was throwing following error.

Failed to connect to 192.241.224.13 port 80: Operation timed out [url] http://192.241.224.13/laravel-craft.zip

I was not sure about error so I tried few things like updating composer and updating laravel installer but still it was not working but finally I was able to solve problem so in this blog I am going to explain how to solve this issue.

This issue is because even after updating laravel installer version with composer it's still using old version of composer which was installed in /usr/local/bin library. To find out this type following command in terminal.

laravel --version

If it shows following output that means you are still using old version of laravel installer.

Laravel Craft version 1.0.0


So to remove this version first of all remove old version. Go to terminal and type following command.

rm /usr/local/bin/laravel

Now will again install laravel with following command.

composer global require "laravel/installer"

It will install laravel in your users home directory, so you have to add path to it in your bash_profile file. Open the bash_profile file for editing.

sudo nano ~/.bash_profile

And copy following line in it.

export PATH=/Users/USERNAME/.composer/vendor/bin:$PATH

In above line replace USERNAME with your OSX username. Save the file and reopen the terminal. Now again type following command.

laravel --version

And it will show following output.

Laravel Installer version 1.3.1

So now you have the latest version of laravel installer, create new laravel application with following command

laravel new app-name

Hope this helps you.




Monday, December 12, 2016

Update Magento 2 From 2.0.0 to 2.0.2

In this blog I am going to mention how to update Magento 2.0 from 2.0.0 to 2.0.2 This procedure you can follow for future updates as well.



There are two ways to do this. If you don't like to work with command line tools, then you can upgrade Magento from System Upgrade in admin.

Login to Magento Admin and Go to

System > Tools > Web Setup Wizard

Here there is an option "System Upgrade"


Select that option and follow through wizard. For more information check following link.



Other way to upgrade is with command lines which I like the most as it's just matter of typing some commands and your Magento is upgraded.

Go to terminal and go to your Magento root directory and run following commands.

composer require magento/product-community-edition 2.0.2 --no-update
composer update

This will update your Magento. After update do some clean up and indexing with following set of commands.

rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex

And you have updated Magento 2 version.