There was a problem when I print one record.
This is the data I want to view->
and this script on the controller ->
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Auth;
Use App\Mstcst;
use App\Mstbeasiswa;
use App\User;
Use App\Krdfas;
use Illuminate\Http\Request;
use App\Http\Requests;
use Illuminate\Database\Query\Builder;
class BeasiswaController extends Controller
{
public function index(){
$user = Auth::user()->no_anggota;
$take = Mstcst::where('no_anggota', $user)->first();
$CNO = $take->cno;
echo $CNO;
}
}
printed on the screen like this->
I would like printed in accordance with the existing data in the database. 0000004576 not like this 4576. Please help
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2k70wgY
via IFTTT
Aucun commentaire:
Enregistrer un commentaire