- Setup Laravel app
- Setup vue.js inside laravel app
- New Laravel app
- Rename
.env.example
to.env
- Config
config/database.php
to MySQL or SQLite - For SQLite, run
touch storage/database.sqlite
to create sqlite database
https://www.heidisql.com/forum.php?t=24073 |
<?php | |
namespace App\Services; | |
class InvalidPatternException extends \Exception | |
{ | |
} | |
/** | |
* Pattern is enclosed in the open and close delimiter |
<?php | |
/** | |
* Convert number amount to Thai text as in Excel | |
* | |
* author: Rati Wannapanop | |
* email: rati.wannapanop@gmail.com | |
* since: 2014-09-06 | |
*/ |
#!/bin/sh | |
######################################################## | |
# Bash script to install HeavyGari Laravel App | |
# Written by Talha Ibne Imam | |
######################################################## | |
HC='\033[0;32m' # Heading Color | |
WC='\033[0;33m' # Warning Color | |
NC='\033[0m' # No Color |
It seems there is some problems between Vagrant 1.6.2 and VirtualBox 4.3.12 (the latest at the time or writing this),
switching back to VirutalBox 4.3.6 or VirtualBox 4.3.8 seems to eliminate the problem.
update 1: Try both Vagrant 1.6.2 and VirtualBox 4.3.12 on Mac and they seem to work fine!
update 2: You need to enable Virtual Machine option in your BIOS to make VirtualBox work as expected. Saw someone mention about this in Laravel forum about this and it is true.
Also, Vagrant version should be 1.6.2.
function extract_vars(template, openChar, closeChar) { | |
openChar = openChar || '{'; | |
closeChar = closeChar || '}'; | |
var i = 0; | |
var data = []; | |
do { | |
if (template[i] == '{') { | |
for (var j=i+1; j<template.length; j++) { |
#Set DB_CONNECTION to use sqlite in-memory database when testing
<env name="DB_CONNECTION" value="sqlite">
<env name="DB_DATABASE" value=":memory:">
config\database.php
file, change the default sqlite
connection to 'connections' => [
function object_get(obj, key) { | |
if (!key || $.trim(key) == '') return obj; | |
$.each(key.split('.'), function(idx, seg) { | |
if (typeof obj !== 'object' || obj[seg] === undefined) { | |
obj = undefined; | |
return obj; | |
} | |
obj = obj[seg]; | |
}); | |
return obj; |