Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
1155245a
Commit
1155245a
authored
May 10, 2017
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting. compile
parent
5b8401e1
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
27 deletions
+29
-27
app.css
public/css/app.css
+2
-6
app.js
public/js/app.js
+13
-20
bootstrap.js
resources/assets/js/bootstrap.js
+14
-1
No files found.
public/css/app.css
View file @
1155245a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
public/js/app.js
View file @
1155245a
This diff is collapsed.
Click to expand it.
resources/assets/js/bootstrap.js
View file @
1155245a
...
...
@@ -21,9 +21,22 @@ try {
window
.
axios
=
require
(
'axios'
);
window
.
axios
.
defaults
.
headers
.
common
[
'X-CSRF-TOKEN'
]
=
document
.
head
.
querySelector
(
'meta[name="csrf-token"]'
).
content
;
window
.
axios
.
defaults
.
headers
.
common
[
'X-Requested-With'
]
=
'XMLHttpRequest'
;
/**
* Next we will register the CSRF Token as a common header with Axios so that
* all outgoing HTTP requests automatically have it attached. This is just
* a simple convenience so we don't have to attach every token manually.
*/
let
token
=
document
.
head
.
querySelector
(
'meta[name="csrf-token"]'
);
if
(
token
)
{
window
.
axios
.
defaults
.
headers
.
common
[
'X-CSRF-TOKEN'
]
=
token
.
content
;
}
else
{
console
.
error
(
'CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'
);
}
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment