Operating System : Ubuntu 14.04.1
Web Server : Apache 2.4.7
Application Server : PHP 5.5.9
/** | |
* Bootstrap CSS | |
* CSS3 Media query for responsive design | |
*/ | |
/* large grid only */ | |
@media (min-width: 1200px) { | |
} |
public function index(){ | |
$categoryList = Category::all(); | |
return view('category.list')->with('categoryList', $categoryList); | |
} |
function numberToWord($number) { | |
$hyphen = '-'; | |
$conjunction = ' and '; | |
$separator = ', '; | |
$negative = 'negative '; | |
$decimal = ' point '; | |
$dictionary = array( | |
0 => 'zero', | |
1 => 'one', | |
2 => 'two', |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
/* | |
Exemples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> | |
*/ | |
(function() { | |
Laravel's document root is public
folder. But you often needs to put your assets like images on other folders than public.
Here is an example using intervestion/image
package on laravel.
Route::get('images/{name}', function($name){
if(! file_exists(storage_path("/app/$name"))){
return App::abort(404);
}
// Get the image