Skip to content

Instantly share code, notes, and snippets.

Avatar

Charisse May Dalida cmd0315

View GitHub Profile
View error printing
<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>
View Auth Filter
Route::filter('auth', function()
{
if (Auth::guest())
{
if (Request::ajax())
{
return Response::make('Unauthorized', 401);
}
else
{
You can’t perform that action at this time.