A
A
Alexander Valutin2019-09-12 14:22:49
phpstorm
Alexander Valutin, 2019-09-12 14:22:49

How to make a file editable?

Created a migration. I want to write code in the safeUp and safeDown functions, and when I try to do this, I get an error:
Failed to change read-only status for the following files:
There is a small padlock on the file. How to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JhaoDa, 2019-09-12
@JhaoDa

Try clicking on the lock in the statusbar.

D
Daria Motorina, 2019-09-12
@glaphire

Through ls -l /path/to/fileyou can see the rights to the file, with the chmod command you can change these rights from read-only to writable. About the status bar and the icons that replace these commands are written here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question