Posts tagged with laravel

  • My first Composer package - Permit

    Hurray! Contributed the first Laravel package. Yessssss!


    Read More
  • Laravel unit testing in workbench note

    Just want to note down my experiences when doing unit testing with Laravel.


    Use Mockery to mock all the dependencies if possible to save time when executing the tests.

    Database Testing with Sqlite (in memory)

    If the tests involve a very complex SQL query/database, then should first try to do the testing using SQLite in memory. This will speed up execution time a lot as the database will be destroyed and re-created every time a single method runs. A database running in memory will speed up the process.

    However, there are some...

    Read More
  • Plenty of meetings

    School will start again next week. I am having lots of meetings this week.

    Continue my journey with Laravel framework :) Almost finish writing the draft version for Permit package. Basically, I rewrite the bitwise permission scheme used in Liferay for Laravel. Feel fun to revise some bit operations after so long. The last time I wrote bit operations are during year 3 of University for the Amazon game :) It was so tough back then.

    Hurray! almost done. The super early alpha version is here: Permit. Still need to add in a lot of unit test...

    Read More