changed avatar url in both old and new EDIT APIs| removed db raw from road items report| changed url in Randd
This commit is contained in:
@@ -16,6 +16,7 @@ use Illuminate\Support\Facades\Storage;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Models\RandDVoting;
|
||||
use Illuminate\Support\Str;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use App\Models\RandDVotingPaperAnswer;
|
||||
|
||||
class NewRandDCtrl extends Controller
|
||||
@@ -125,7 +126,7 @@ class NewRandDCtrl extends Controller
|
||||
$item->setAttribute('Voting', true);
|
||||
$getVote = RandDVoting::where('project_id', $item->id)->where('status', '2')->first();
|
||||
if (! RandDVotingPaperAnswer::where('vote_id', $getVote->id)->where('user_id', Auth::user()->id)->first()) {
|
||||
$url = 'https://rms.rmto.ir/randd/voting/' . $getVote->id;
|
||||
$url = URL::to('/randd/voting') . '/'. $getVote->id;
|
||||
$item->setAttribute('urlVoting', $url);
|
||||
|
||||
$item->setAttribute('allowVoting', true);
|
||||
|
||||
Reference in New Issue
Block a user