Sohail @sohail



To fix the 'Git index.lock' error during commit, check for the lock file with ls project_path/.git/index.lock, change ownership using `sudo chown -R your_username:your_group (...)

To resolve the issue:

  1. Confirm MySQL is configured for port 3307.
  2. Check MySQL server status: mysqladmin -u root -p -h -P 3307 status.
  3. Update mysqldump (...)

You can extend the Validator class.

Laravel Doc

But anyway try this


You can use the hidden selector:

// Matches all elements that are hidden
And the visible selector:

// Matches all elements that are visible


The Illuminate\Mail\Mailable::attach() method returns $this, you just have to chain it:

 * Build the message.
 * @return $this
public function build()

Use this:

git remote set-url origin git://new.location

Alternatively, open .git/config, look for [remote "origin"], and edit the url = line.

You can check it worked (...)

You can use grep -ilR:

grep -Ril "text-to-find-here" /directory-path
  • i stands for ignore case (optional in your case).
  • R stands for recursive.
  • l stands (...)

Here are few differences between using let and var:

1. Redeclaration:

In strict mode, var will let you re-declare the same variable in the same scope while let throws (...)

You can use delete keyword to remove properties from objects.

if(myObject.hasOwnProperty('item1')) {
	delete myObject.item1;

Note that, To remove an element from (...)