0

I'm using Laravel framework. I want to change the default code style format from this:

 return [
            'name' => 'required|min:4|string',
            'email' => 'required|email|unique:users,email',
            'password' => 'required|min:4|confirmed',
            'password-confirmation' => 'required|min:4'
        ];

to this:

return [
            'name'                  => 'required|min:4|string',
            'email'                 => 'required|email|unique:users,email',
            'password'              => 'required|min:4|confirmed',
            'password-confirmation' => 'required|min:4'
        ];

I did a lot of searches in PhpStorm settings but I couldn't find the solution.

0

1 Answer 1

5
  1. File | Settings (PhpStorm | Preferences on macOS)
  2. Editor | Code Style | PHP
  3. Wrapping and Braces tab
  4. Array initializer | Align key-value pairs option

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.