LaravelBook\Laravel4Powerpack\Str::classify PHP Method

classify() public method

This method is primarily used to format task and controller names. Returns "Task_Name" $class = Str::classify('task_name'); Returns "Taylor_Otwell" $class = Str::classify('taylor otwell')
public classify ( string $value ) : string
$value string
return string
    public function classify($value)
    {
        $search = array('_', '-', '.', '/');
        return str_replace(' ', '_', $this->title(str_replace($search, ' ', $value)));
    }