===================================================================
Open your terminal using Ctrl+Alt+T
and type the following commands
composer global require "laravel/installer"
$('.datepicker-autoclose').datepicker({ | |
autoclose: true, | |
todayHighlight: true | |
}).on('changeDate', function(ev) { | |
if($(this).valid()){ | |
$(this).removeClass('invalid').addClass('success'); | |
} | |
}); |
# CSS | |
<style> | |
.form-control.valid { | |
border-color: #28a745; | |
} | |
.form-control.error { | |
border-color: #dc3545; | |
} | |
.form-control.error:focus { |
let url = window.location.href; | |
$('.nav li a[href="'+url+'"]').addClass('active'); |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
</head> | |
<body> |
Copyright (C) 2016 Donnie Ray Jones | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:379:in `parse': (<unknown>): did not find expected '-' indicator while parsing a block collection at line 78 column 5 (Psych::SyntaxError) | |
from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:379:in `parse_stream' | |
from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:327:in `parse' | |
from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:254:in `load' | |
from C:/Users/Arafat/Homestead/Vagrantfile:28:in `block in <top (required)>' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.0/lib/vagrant/config/v2/loader.rb:37:in `load' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.0/lib/vagrant/config/loader.rb:125:in ` block (2 levels) in load' | |
from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-2.0.0/lib/vagrant/config/loader.rb:119:in |
-----------------------------------------+------------------+ | |
| Domain | Method | URI | Name | Action | |
| Middleware | | |
+--------+-----------+-----------------------------------------------------------+--------------------------------------------------+----------------------------------- | |
-----------------------------------------+------------------+ | |
| | GET|HEAD | / | | Closure | |
| web | | |
| | GET|HEAD | admin | voyager.dashboard | \TCG\Voyager\Http\Controllers\VoyagerCon | |
troller@index | web,admin.user | | |
| | POST | admin/categories | voyager.categories.store |