Skip to content

Instantly share code, notes, and snippets.

/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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
/*
Adapted from https://github.com/sindresorhus/github-markdown-css
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
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
Meta tag:
<meta name="csrf-token" content="{{ csrf_token() }}">
Link for sending the ajax like button or smth else:
<a href="{{ url('drlresult') }}" class="submit-selection" data-link="{{ url('getAjax') }}" data-token="{{ csrf_token() }}">Radiatorselectie opslaan/toevoegen</a>
ajax setup in the beggining of JS after document ready:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')