Clear cache in laravel 5

Clear database cache In Laravel php artisan cache:clear command is used to clear cache. It will remove all the cache associated with the connection to the database. Usage: php artisan cache:clear Further, on shared hosting, you can use below code in your routes/web.php file to remove your database cache. Route::get(‘/clear-cache’, function() { $exitCode = Artisan::call(‘cache:clear’); […]

Read More

What is composer ?

Composer is PHP dependency manager used for installing dependencies of PHP applications. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. It provides us a nice way to reuse any kind of code. Rather than all of us reinventing the wheel over and over, we […]

Read More

List out some latest features of Laravel Framework

Inbuilt CRSF (cross-site request forgery ) Protection. Laravel provided an easy way to protect your website from cross-site request forgery (CSRF) attacks. Cross-site request forgeries are malicious attack that forces an end user to execute unwanted actions on a web application in which they’re currently authenticated. Inbuilt paginations Laravel provides an easy approach to implement […]

Read More

List out some benefits of Laravel over other Php frameworks ?

Top benifits of laravel framework Setup and customization process is  easy and fast as compared to others. Inbuilt Authentication System. Supports multiple file systems Pre-loaded packages like Laravel Socialite, Laravel cashier, Laravel elixir,Passport,Laravel Scout. Eloquent ORM (Object Relation Mapping) with PHP active record implementation.  Built in command line tool “Artisan” for creating a code skeleton […]

Read More

setting getting config variables in laravel

Using Config files in Laravel 5.4

Laravel provides an easy way to manage the application configration through its config files.In Laravel, all configurations files are stored or kept in config directory of your application. #Structure of Config Directory After installing fresh laravel the config directory looks like below Why to use config files in laravel Config files makes laravel application more […]

Read More