Skip to content

Instantly share code, notes, and snippets.

@pjmartorell
Last active May 5, 2016 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjmartorell/0b0db8bfef3e9670939895148c205ff2 to your computer and use it in GitHub Desktop.
Save pjmartorell/0b0db8bfef3e9670939895148c205ff2 to your computer and use it in GitHub Desktop.
Laravel Naming Conventions
<?php
class MyClass {
const MY_CONSTANT = 0.0;
protected $myProperty;
protected $table = [
"my_table"
];
protected $columns = [
"my_column",
"your_column"
];
public function myMethod($myParameter) {
$myVariable = 'potato';
return view('hotPotatoes.index')
}
public function myRelation() {}
public function my_helper() {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment