Skip to content

Instantly share code, notes, and snippets.

@izshreyansh
Last active October 12, 2020 10:57
Show Gist options
  • Save izshreyansh/f85d5a90ae0c34e4e954767f03b3d598 to your computer and use it in GitHub Desktop.
Save izshreyansh/f85d5a90ae0c34e4e954767f03b3d598 to your computer and use it in GitHub Desktop.
Laravel Best Practices
  • Every modification in .env file needs to be replicated in .env.example.

Ex: .env file is never commited into the repository, So 3rd developer will never know valid values to pass through in .env.

  • If css class can be traced with relationships, Don't introduce a new class.
<ul class="list-holder">
<li class="list-item">Item 1</li>
</ul>

Here list-item class can be avoided in css by making use of .list-holder > li { /* Style Block */ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment