Laravel if statement multiple conditions – if condition in Laravel

I will learn how to use if condition in laravel select Db Raw Query with Conditional (@if, @else, @elseif, @isset, @empty, and @unless) Statements in Laravel. i can use mysql case when statement with db raw in laravel. If you want to use mysql method then you must have to use db raw method. in … Read more Laravel if statement multiple conditions – if condition in Laravel

Solution for “Trying to get property of non-object” in Laravel

If you working with or loops in laravel (for, foreach, etc.) display access the data to getting the try to get property of non-object laravel or any types of the relationships like as a (one to many, many to many, etc.), this may mean that one of the Database queries is returning a null data … Read more Solution for “Trying to get property of non-object” in Laravel

Polymorphism in PHP Object-oriented programming Examples

Today, We want to share with you polymorphism in php.In this post we will show you Run time, hear for compile time polymorphism in php we will give you demo and example for implement.In this post, we will learn about Encapsulation using PHP OOP with an example. How To Implement Polymorphism In PHP? In PHP … Read more Polymorphism in PHP Object-oriented programming Examples

Laravel return json view ajax request example

in Laravel return JSON response can be sent using the json laravel method. This laravel method will instinctive set the Content-Type header to application/json. The json Based data laravel method will instinctive convert the your Custom array into relevant get json Data Format response. Special Responses Creating A JSON Response return Response::json(array('name' => 'Pakainfo', 'state' … Read more Laravel return json view ajax request example