Modules are used to extend and customize Drupal Core. To install module normally we can navigate to "Admin => Extend" link in toolbar.
Like older versions of Drupal, Drupal 8 doesn't allow modules to be enable / disable. The only thing we can do is either install a module or completely uninstall it.
Below example shows how to install module using code:
In Drupal 8, module's weight is stored into ConfigFactory. Here's how to get or set module weight.
Get module weight:
As a developer we always been into position where we need to write a custom script which bootstrap's Drupal Core from code and do some operations. This is pretty straight forward when working single site. But when working with Multisite or sub-site, how we can do this.
When accessing Laravel in browser, the URL contains "index.php" OR "public/index.php". Having these in URL is not a good SEO practice.
To remove "index.php" from URL, you can write a small code snippet in ".htaccess" file located at "public/" directory.
User(s) are very important part of any system. Below is how to add new user, assign password to user, add new Group in Linux using command line.