Lately I am impressed by Laravel. I’ve done several projects in it and it’s awesome. Sometimes however there is a need for more than simply framework. I started looking for CMS system.Â I came across OctoberCMS that is based on Laravel 5.1
Laravel offers a really simple way to implement 3rd party login system like Facebook, Twitter, Github, Google and many others. Check out theÂ Laravel SocialiteÂ and read this really useful tutorialÂ here.
I won’t go into details about how great validation in Laravel is and how to do it. I was just searching how to set a slug field as unique – except when doing an update on a field that has this unique instance of our slug. There is an example in docs, but only for […]
As you probably know (or should know) Magento uses EAV attribute db organization. Its not pretty, its not fast but we need to live with it 🙂 When your site admins work their ecommerce magic they will need to insert products. And most probably they will (at least when they start the process) play around […]
Zend Framework offers multiple adapters for translations. Among them is not an adapter for database translating. Here is how-to 🙂 I need to point out that there are other possibilities that offer much more flexibility than database and are designed to handle translations (one of them that is widely used and I recommend is Gettext […]
I assume you know the difference between class and an object. If not, read this! A static method is basically the same as a non-static, but there is one difference: a static method is accessible without needing an instantiation of the class. Because you access a static element via a class and not an instance, […]
Zend offers different logging possibilities. I won’t present them all. The basic of logging possibilities is Zend_Log_Writer_Db which logs in database. By default there are timestamp, message, priority andpriorityName entries. If you want to log your own entry that is you want some custom fields to be logged you have to deal with event array. […]
PHP way PHP uses unix timestamps for all its date functionality. Functions to format and convert this timestamps are available. Timestamp is simply an unsigned integer – itâ€™s the number of seconds that have elapsed since midnight on January 1st 1970 (greenwich mean time). MySQL way MySQL has three date types for use in columns. […]