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/sh | |
ADB_PATH="/Users/medyo/Library/Android/sdk/platform-tools" | |
PACKAGE_NAME="com.mobiacube.elbotola.debug" | |
DB_NAME="default.realm" | |
DESTINATION_PATH="/Users/Medyo/Desktop/" | |
NOT_PRESENT="List of devices attached" | |
ADB_FOUND=`${ADB_PATH}/adb devices | tail -2 | head -1 | cut -f 1 | sed 's/ *$//g'` | |
if [[ ${ADB_FOUND} == ${NOT_PRESENT} ]]; then | |
echo "Make sure a device is connected" | |
else |
# built application files | |
*.apk | |
*.ap_ | |
# files for the dex VM | |
*.dex | |
# Java class files | |
*.class |
11-02 12:59:48.767 1824-2096/? I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.readium.sdk.android.launcher/.MainActivity} from pid 1964 | |
11-02 12:59:48.817 1824-1876/? E/SoundPool﹕ error loading /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.817 1824-1876/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.817 1824-1876/? E/SoundPool﹕ error loading /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.817 1824-1876/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.817 1824-1876/? E/SoundPool﹕ error loading /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.827 1824-1876/? W/AudioService﹕ Soundpool could not load file: /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.827 1824-1876/? E/SoundPool﹕ error loading /system/media/audio/ui/Effect_Tick.ogg | |
11-02 12:59:48.827 1824-1876/? W/AudioService﹕ |
11-01 21:49:10.029 1620-1620/? D/AndroidRuntime﹕ >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<< | |
11-01 21:49:10.029 1620-1620/? D/AndroidRuntime﹕ CheckJNI is ON | |
11-01 21:49:10.079 1620-1620/? D/dalvikvm﹕ Trying to load lib libjavacore.so 0x0 | |
11-01 21:49:10.099 1620-1620/? D/dalvikvm﹕ Added shared lib libjavacore.so 0x0 | |
11-01 21:49:10.139 1620-1620/? D/dalvikvm﹕ Trying to load lib libnativehelper.so 0x0 | |
11-01 21:49:10.139 1620-1620/? D/dalvikvm﹕ Added shared lib libnativehelper.so 0x0 | |
11-01 21:49:10.219 1620-1620/? E/cutils-trace﹕ Error opening trace file: No such file or directory (2) | |
11-01 21:49:10.819 1620-1620/? D/AndroidRuntime﹕ Calling main entry com.android.commands.am.Am | |
11-01 21:49:10.828 1620-1620/? D/dalvikvm﹕ Note: class Landroid/app/ActivityManagerNative; has 163 unimplemented (abstract) methods | |
11-01 21:49:10.859 911-1095/? I/ActivityManager﹕ START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=org |
<?php | |
use Illuminate\Console\Command; | |
use Illuminate\Filesystem\Filesystem; | |
class ViewsCommand extends Command { | |
/** | |
* The console command name. | |
* | |
* @var string |
function pretty_var($myArray){ | |
print str_replace(array("\n"," "),array("<br>"," "), var_export($myArray,true))."<br>"; | |
} |
As configured in my dotfiles.
start new:
tmux
start new with session name: