app/Http/Controllers/API/APIv6tunnelController.php
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
Display a listing of the resource.
Display a listing of the resource .
public function index()
    {
        $all = Ip6Tunnel::all();
        $last=count($all);
        $ip6ss = Ip6Tunnel::find($last);
        return $this->sendResponse($ip6ss->toArray(), 'Posts retrieved successfully.');
    }
public function index ( ) { $ all = Ip6Tunnel :: all ( ) ; $ last = count ( $ all ) ; $ ip6ss = Ip6Tunnel :: find ( $ last ) ; return $ this -> sendResponse ( $ ip6ss -> toArray ( ) , 'Posts retrieved successfully.' ) ; }
Display a listing of the resource.
Display a listing of the resource .