Magic Constants in PHP
PHP has predefined constants that come with various extensions. Knowing these constants allows us to use PHP more effectively. 1.) __LINE__ Returns the line number where it is used. 2.) __FILE__ Returns the file path and filename. 3.) __DIR__ Returns
Creating Custom Laravel Blade Directive in Laravel 8
Laravel, one of the most used web frameworks in the world and developed with PHP, comes with Blade template engine. The directives developed for specific purposes such as @section, @yield, @parent, @json, which come as predefined in Blade, provide great
Create PDF file from HTML using jsPDF Javascript Library on Client-Side
There may be situations where it is necessary to produce PDF files while developing a web application. It may need to be printed especially in cases such as reporting and invoicing. PDF file creation in the web application can be