Laravel 5.2 method to check is view exists? -


is there method check if view exists?

like php file_exists, using internal laravel method convenience

i want code this:

if(__ifviewexist__($view)){     return view($view)->render(); } return "page tidak ditemukan"; 

yes, exists() method available.

if(view()->exists($view)){     return view($view)->render(); } return "page tidak ditemukan"; 

Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -