app/Http/Controllers/User/TokoController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        return view('main.toko.index', [
            'toko'     => Toko::whereUser_id(userId())->latest()->paginate(5)
        ]);
    }
public function index ( ) { return view ( 'main.toko.index' , [ 'toko' => Toko :: whereUser_id ( userId ( ) ) -> latest ( ) -> paginate ( 5 ) ] ) ; }
Display a listing of the resource.
Display a listing of the resource .