upgrade – I'm Knight https://imknight.net From Freelancer to Bootstrapper Mon, 16 Jan 2017 14:12:43 +0000 en-US hourly 1 https://wordpress.org/?v=4.9.8 Upgrading my Laravel 4 App to Laravel 5 https://imknight.net/development/upgrading-my-laravel-4-app-to-laravel-5/ https://imknight.net/development/upgrading-my-laravel-4-app-to-laravel-5/#respond Sat, 23 May 2015 00:05:07 +0000 https://imknight.net/?p=3487 I have spent around 20 hours to upgrade one of my medium size, simple Laravel 4 app to Laravel 5, just to note down some of the problem and solutions for this journey. If you...

The post Upgrading my Laravel 4 App to Laravel 5 appeared first on I'm Knight.

]]>
I have spent around 20 hours to upgrade one of my medium size, simple Laravel 4 app to Laravel 5, just to note down some of the problem and solutions for this journey.

If you want to switch over to HHVM,  do take note that you will see the blank page often and the easy way to check out the error is checking on the hhvm.log on your homestead vm. I think I spend at least the first 10 hours trying to debug the app without knowing this. Every time I face the blank page error; I just do manual dd in several place to trace the error.

There are two guides you can check on for the upgrade

For the composer.json remember to add in the html and form package, since this 2 package are not longer included in Laravel, and I recommend using the Laravel Collective version

If you are using polymorphic relationship, you will have noticed that unable to update the relationship once you upgrade to Laravel 5. This is due to it only store the model name in Laravel 4, but in Laravel 5 it need to store with namespace, I recommend this solution from StackOverflow rather than update the database

For the Template view

  • take note that now views are under resources.
  • every view now needs to add extends(‘master’) from the master view
  • pagination links not long use the links()  now use render()
  • for the blade tag, instead of change the config to use the old tag I recommend using the new tag.

For Controller

  • remember to add the namespace
  • make use of the method injection, this can avoid load up too many things on the constructor
  • replace the form validation with form request
  • use the helper function like view() , redirect().

Asset Management – if you didn’t use any package for asset management, I highly recommend use Gulp and Laravel Elixer

It’s a little painful to go through so many changes for the upgrade, but I m highly recommend the upgrade and Laravel 5.1 is going to be LTS for 3 year, I believe this worth the effort.

 

The post Upgrading my Laravel 4 App to Laravel 5 appeared first on I'm Knight.

]]>
https://imknight.net/development/upgrading-my-laravel-4-app-to-laravel-5/feed/ 0
WordPress 2.5 https://imknight.net/wordpress/wordpress-25/ https://imknight.net/wordpress/wordpress-25/#respond Tue, 01 Apr 2008 16:46:06 +0000 https://imknight.net/?p=1280 I have complete the upgrade without any problem, backup – download the new vesion – unzip and overwrite. Currently playing with the new wordpress admin area which a lot of user compliment it and...

The post WordPress 2.5 appeared first on I'm Knight.

]]>
I have complete the upgrade without any problem, backup – download the new vesion – unzip and overwrite.

Currently playing with the new wordpress admin area which a lot of user compliment it and yes i like it too. The tag feature and media library feature is nice, but this make me wonder, is that mean next gallery and simple tag this 2 plugin become meaningless ?

This remind me one of the open source story i heard before , long long time ago there is product which is open source, it welcome developer to develop addon but after some time the product will just take in all these addon and release as new version … good or bad ?

anyway some of the option seem like doesn’t working properly with Firefox on mac , i think i need test it a few more time before i conclude this.

The post WordPress 2.5 appeared first on I'm Knight.

]]>
https://imknight.net/wordpress/wordpress-25/feed/ 0
Upgraded My Bro Blog https://imknight.net/project/upgraded-my-bro-blog/ https://imknight.net/project/upgraded-my-bro-blog/#respond Sat, 10 Jun 2006 16:19:35 +0000 https://imknight.net/2006/06/11/upgraded-my-bro-blog/ Spending few hour to suggest him for new template .. apply the new theme fixed the new theme to suit his blog updated some of old plugin make use of the new widget plugin...

The post Upgraded My Bro Blog appeared first on I'm Knight.

]]>
Spending few hour to suggest him for new template ..

  • apply the new theme
  • fixed the new theme to suit his blog
  • updated some of old plugin
  • make use of the new widget plugin

Visit him @ axlerush , hmmmmmm i m thinking to change new template too.

Axlerush New Look

The post Upgraded My Bro Blog appeared first on I'm Knight.

]]>
https://imknight.net/project/upgraded-my-bro-blog/feed/ 0