Skip to content

Instantly share code, notes, and snippets.

<?php
class Process_Manager implements Countable
{
protected $processes = array();
protected $is_child = FALSE;
public function count()
{
return count($this->processes);

#Простой пост с комментариями ##Миграции Эта миграция для таблицы posts:

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePostsTable extends Migration {

Installation/configuration

Create laravel project

composer create-project laravel/laravel --prefer-dist PROJECT
```jo
This will setup a new laravel project in PROJECT subfolder of current folder, and set the encryption key.

## Development dependecies
Things that I find useful for development in every project.
@WISHPRO
WISHPRO / .htaccess
Last active August 29, 2015 14:12 — forked from vluzrmos/.htaccess
# ----------------------------------------------------------------------
# /PUBLIC folder .htaccess
# ----------------------------------------------------------------------
# This .htaccess file is recommended
# to be placed at root/public folder
# of your Laravel powered application
# ----------------------------------------------------------------------
# This file works with Laravel 3 and 4
# ----------------------------------------------------------------------
# Turning on the rewrite engine is necessary for the following rules and