Skip to content

Instantly share code, notes, and snippets.

View cmd0315's full-sized avatar

Charisse May Dalida cmd0315

View GitHub Profile
Route::filter('auth', function()
{
if (Auth::guest())
{
if (Request::ajax())
{
return Response::make('Unauthorized', 401);
}
else
{
<div class="col-sm-8">
<input type="text" class="form-control" id="department_id" name="department_id" value="{{ e($department->department_id) }}">
@if($errors->has('department_id'))
<p class="bg-danger">{{ $errors->first('department_id') }}</p>
@endif
</div>