Skip to content

Instantly share code, notes, and snippets.

@ferdiunal
Created April 15, 2016 20:48
Show Gist options
  • Select an option

  • Save ferdiunal/661b09bfbac58a6a7198ffa6cb06530d to your computer and use it in GitHub Desktop.

Select an option

Save ferdiunal/661b09bfbac58a6a7198ffa6cb06530d to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="author" content="Ferdi ÜNAL">
<meta name="_token" content="{!! csrf_token() !!}">
<title>Post</title>
</head>
<body>
<form action="{!! action('PostController@index') !!}" onsubmit="return false;" id="createdForm">
<div class="form-group">
<input type="text" class="form-control" name="username">
</div>
<div class="form-group">
<input type="text" class="form-control" name="password">
</div>
<button class="btn btn-default" type="button" onclick="post.create('#createdForm');">Gönder</button>
</form>
<script src="http://code.jquery.com/jquery-2.2.3.min.js" integrity="sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=" crossorigin="anonymous"></script>
<script src="{!! url('post.js') !!}"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment