first commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Helpers;
|
||||
|
||||
class RedirectLinkHelper
|
||||
{
|
||||
public static function get($packageName, $platform = null)
|
||||
{
|
||||
$link = config('redirects.' . str_replace('.', '*', $packageName), "https://uzee.ir/$packageName");
|
||||
if ($platform) {
|
||||
$link .= ".$platform";
|
||||
}
|
||||
return $link;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user