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';
| #!/bin/bash | |
| folders='Compressed Documents Images Music Programs Videos' | |
| ext_comp="*.zip *.tar.gz" | |
| ext_doc="*.htm* *.php *.txt *.css *.doc* *.pdf *.PDF *.ppt* *.js" | |
| ext_img="*.jp*g *.JPG *.png *.gif" | |
| ext_music="*.mp3 *.aac *.wma" | |
| ext_progrm="*.deb *.exe *.run" | |
| ext_vid="*.mp4 *.mkv *.flv *.avi *.webm *.wmv" | 
| /* | |
| USER: afoote91 | |
| PROB: transform | |
| LANG: JAVA | |
| */ | |
| import java.util.*; | |
| import java.lang.*; | |
| import java.io.*; | 
| /* C++ program to find Inorder successor in a BST */ | |
| #include<iostream> | |
| using namespace std; | |
| struct Node { | |
| int data; | |
| struct Node *left; | |
| struct Node *right; | |
| }; | |
| //Function to find some data in the tree |