Skip to content

Instantly share code, notes, and snippets.

@lukrizal
Created January 30, 2016 06:28
Show Gist options
  • Save lukrizal/42f2e6759a0d09c80643 to your computer and use it in GitHub Desktop.
Save lukrizal/42f2e6759a0d09c80643 to your computer and use it in GitHub Desktop.
> vendor should be in ignored list
> use .env of laravel, that is better than directly putting sensitive details in database.php configuration file
> .env should be ignored from the ignored list
> Eloquent of is better than using DB, in terms of scalability
> Use of foreign keys is a must
> Use Route::resource or Route::controller than using Route::get for related routes.
> composer.json should specify the supported php version
> avoid ambiguous-related of naming of classes
> when using Frameworks or related things like it, as much as possible align with their coding standard to maximize their usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment