/** * Update action url in model form to be protocal-relative. * @var str $model * @var array $attributes * * @return str */ public static function model($model, $attributes = array('url' => '/')) { return str_replace('http:', null, Form::model($model, $attributes)); }