[] operator not supported for strings
OnYou can fix this error check the above code you have defined- $var[]=””; To $var[]=array();
SWCodes- PHP, JavaScript, CakePHP, Laravel, Angularjs2, Angularjs3, Angularjs4, HTML4, HTML5, CSS, CSS3, Nodejs, Codeignitor, Vuejs Interview Question and Answers for fresher and experience,Software and Web development
You can fix this error check the above code you have defined- $var[]=””; To $var[]=array();
If you want to selecting a data with two date start date and end date in laravel so you can use given example below- Example 1: $start_date=carbon::parse($startDate)->format(“Y-m-d”); $end_date=carbon::parse($endDate)->format(“Y-m-d”); $query=User::query(); $query->whereDate(“created_at”,”>=”, $start_date); $query->whereDate(“created_at”,”<=”, $start_date); $query->get(); And If you want selecting a data with…
Content Of Laravel Database: Query Builder Introduction Retrieving Results Retrieving All Rows From A Table Retrieving A Single Row / Column From A Table Retrieving A List Of Column Values Chunking Results Aggregates Selects Raw Expressions Joins Inner Join Clause Left Join…
In this article i am going to define at five Laravel Blade directives you can use to simplify your templates, and learn about some convenient directives that make solving specific problems on each. Check if the user is authenticated if(auth()->user()) // The…
Q1. What is Laravel? Ans. Laravel is one of the “PHP framework” and which is built on MVC design pattern. It is created by Taylor Otwell. Laravel provides expressive and elegant syntax that helps in creating a wonderful web application easily and…
If want going to install Laravel so make sure in your system Composer will installed or not, If installed you can go for Laravel installation otherwise you need to install composer in your system by using this link click Here. Let’s start…