Skip to content

Instantly share code, notes, and snippets.

@codehell
codehell / ChInput.vue
Created February 25, 2018 08:07
Imput vue componet
<template>
<div class="form-group" :class="{ 'has-error': hasError }">
<div class="col-md-6">
<input :id="name"
:type="type"
class="form-control"
:name="name"
:value="value"
:required="required"
:autofocus="autoFocus"
@codehell
codehell / alerts.blade.php
Created April 4, 2017 13:15
layout for laravel system alerts with blade and bootstrap 3
@if(Session::has('success'))
<div class="container">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<strong>Well done!</strong> {{ Session::get('success') }}
</div>
</div>
</div>