Cross-Origin Resource Sharing (CORS) is mechanism which allow browser to share the resources between the other domain or port. if the cors is disabled in api or server then other domain can’t access the apis and resource of server. Example: if…

How to get folder paths using helpers in laravel?
Laravel has a lot of features and packages available for file system, database, model, view etc. Laravel has helpers to get the path of root folder, public folder, assets folder, storage folder, app folder. To get the path of app…
Remove public from url laravel
There is multiple options to remove the public from the url in laravel application. let’s have look on multiple options of removing public and which one is more secure and reliable method to use. 1. Replacing server.php to index.php Replacing…
Laravel artisan command to generate controllers, Model, Components and Migrations
Laravel is robust framework of php which provides rapid development and security for low and high level projects. It have many features like validation, eloquent, migrations, artisnan security etc. Let’s have look artisan commands of laravel artisan. There is a…

What is a traits in PHP and how to use it ?
Before PHP 5.4, there was no way to implement multiple inheritance in PHP then PHP 5.4 introduce traits as a substitute of multiple inheritance in PHP. By using the traits PHP solve the problem of Multiple Inheritance. A class only…