Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
7cb34f95
Commit
7cb34f95
authored
Sep 08, 2020
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s.unesa.ac.id -> unesa.me
parent
c9be449c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/Http/Controllers/Webprofile/Backend/PostController.php
+1
-1
No files found.
app/Http/Controllers/Webprofile/Backend/PostController.php
View file @
7cb34f95
...
@@ -102,7 +102,7 @@ class PostController extends Controller
...
@@ -102,7 +102,7 @@ class PostController extends Controller
public
function
shorterUrl
(
$long_url
)
public
function
shorterUrl
(
$long_url
)
{
{
$client
=
new
Client
();
$client
=
new
Client
();
$URI
=
'http://
s.unesa.ac.id
/create.php'
;
$URI
=
'http://
unesa.me
/create.php'
;
$params
[
'form_params'
]
=
[
'token'
=>
env
(
'TOKEN_URL'
,
'forge'
),
'url_value'
=>
$long_url
];
$params
[
'form_params'
]
=
[
'token'
=>
env
(
'TOKEN_URL'
,
'forge'
),
'url_value'
=>
$long_url
];
$response
=
$client
->
post
(
$URI
,
$params
);
$response
=
$client
->
post
(
$URI
,
$params
);
$responseJson
=
json_decode
(
$response
->
getBody
(),
true
);
$responseJson
=
json_decode
(
$response
->
getBody
(),
true
);
...
...
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