I am having one custom class called /app/Library/Angular.php. Code is look like this way
namespace App\Library;
/* Custom Class to use angular js in laravel framework */
class angularbind{
/**
* This function to bind the angular data in a curly braces
* This help the bind the NG data
*
*/
function binding($bindtext)
{
return $bindtext;
}
}
Inside the composer i am having this line :
"files": [
"app/Library/Angular.php"
],
Now if i will use namespace directly $test=new \app\Library\Angular\angularbind; inside the blade template it always throw one error called class not found.
https://prnt.sc/j23cw7 see this. if we are using directive like {{}} laravel thinking it like some function. So when we are passing this to php echo whole my angular codes works well inside the laravel framework.