Traits in PHP and Laravel?

This is a fact that in PHP you can only have single inheritance. That means a class can inherit from only one other class. For example if a class needs to inherit more than one methods from different classes in order to prevent...

Continue reading

Laravel 5.8: what is new?

According to Laravel official documentation, version 5.8 comes with continued improvement in framework features. Features: Eloquent HasOneThrough RelationshipAuto-Discovery Of Model PoliciesPSR-16 Cache ComplianceToken...

Continue reading

PHP File Handling – CRUD

Quick tips, how to work with basic filesystem in PHP. Create a File (implicitly creates file): $my_file = 'file.txt'; $handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file); Open a File (open file for writing...

Continue reading