Skip to content

Instantly share code, notes, and snippets.

View hasanhameed07's full-sized avatar

Hasan Hameed hasanhameed07

View GitHub Profile
@hasanhameed07
hasanhameed07 / gist:3f1657e2d44c0f112bcb2a1371aeb99f
Created October 21, 2016 06:02 — forked from learncodeacademy/gist:5f84705f2229f14d758d
Getting Started with Vagrant, SSH & Linux Server Administration

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';