src/controllers/ApiController.php
public function path(Request $request)
		{
			$relpath = $request->get('path');
			$abspath = base_path($relpath);
			return [
				'relpath' => $relpath,
				'abspath' => $abspath,
				'exists' => file_exists($abspath)
			];
		}
public function path(Request $request)
		{
			$relpath = $request->get('path');
			$abspath = base_path($relpath);
			return [
				'relpath' => $relpath,
				'abspath' => $abspath,
				'exists' => file_exists($abspath)
			];
		}
public function path ( Request $ request ) { $ relpath = $ request -> get ( 'path' ) ; $ abspath = base_path ( $ relpath ) ; return [ 'relpath' => $ relpath , 'abspath' => $ abspath , 'exists' => file_exists ( $ abspath ) ] ; }
Validates existence of a path

@method  GET
@param   Request $request
@return  array
Validates existence of a path