PHP code example of vicgutt / laravel-components-backport
1. Go to this page and download the library: Download vicgutt/laravel-components-backport library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vicgutt / laravel-components-backport example snippets
diff
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $path
* @param array $data
* @return string
*/
protected function evaluatePath($path, $data)
{
$obLevel = ob_get_level();
ob_start();
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
+ extract($data, EXTR_SKIP);
+
+
diff
+
+
+ namespace VicGutt\ComponentBackport\Contracts;
+
+ interface DeferringDisplayableValue
+ {
+ /**
+ * Resolve the displayable value that the class is deferring.
+ *
+ * @return \Illuminate\Contracts\Support\Htmlable|string
+ */
+ public function resolveDisplayableValue();
+ }