Instead of having to click a link to get to the next set of content, infinite scrolling (also known as lazy loading, endless scrolling, autopager, endless pages, etc.) pulls the next content automatically into view when the reader approaches the bottom of the page. If you want to implement infinite scroll pagination using Laravel, get…
Resource in laravel
Routes In Edit form you have to add <input type=”hidden” name=”_method” value=”put” /> after form tag Method Patch can you when need to update only single value
Laravel interview Questions
Difference between static and dynamic function in php oops Should we make all function as static. What is constant and defined in php Laravel event Laravel store processor Jquery json.parse and other type of json object Jquery cores browser request error Function((array)$a,(string)$b){ } Function overloading and overwriting trait class User table has users data and…
Telephonic Round Questions in PHP
inheritance : normal inherit or call parent class property to child encapsulation : Public , Private(only defined class can user), Protected (only child class can use) (access modifier) polymorphic : simply assigning the value and behavior in sub class which is already defined friend function : are function which defined in class and allow to…
Interview Basic Questions
Laravel database table naming convention : Laravel’s naming convention for pivot tables is singularized table names in alphabetical order separated by an underscore. So, if one table is features, and the other table is products, the pivot table will be feature_product. You are free to use any table name you want (such as product_feature), but…
Interview Question
How session data is store on server session expire time chache expire time set session time what is data base collection, utf8_genral_ci, uf8_md array sum delete some key value from array.. last .. 2nd last.. with function without function adding any string in array..end N’th height sallary if some values are same in table…
Setup Laravel 5.x with Admin Panel by Boilerpate
Go to link GitHub – rappasoft/laravel-5-boilerplate: A Laravel 5 Boilerplate Project – http://laravel-boilerplate.com Download setup an extract folder in your local repository Open setup folder in CMD Run Command : update composer Open “Sublime Text” editer or any other editer, Open file .env.example from root directry “save as” file with name “.env” open .env file…
MySQL booking date Query Problem between some date
When we have booking date (start date to end date) in db booking table and need to search from “from date” to ” to date” by search box for available seats.
PHP String Interview Question
Question : Find number in a string? preg_replace(“/[^0-9]/”,””,$string); Return string filter_var($str, FILTER_SANITIZE_NUMBER_INT); preg_match_all(‘!\d+!’, $str, $matches); Return an array strpos() : Find the postion in string Example : echo strpos(“I love php, I love php too!”,”php”); Output: 7 strpos() : Finds the position of the first occurrence of a string inside another string (case-sensitive) stripos() : Finds the position…
PHP Array Interview Qutions
Question: What are different type of sorting functions in PHP? sort() – sort arrays in ascending order. $sarray = Array([s] => red [x] => blue [3] => orange ) sort($sarray); print_r($sarray); OUTPUT : Array ( [0] => blue [1] => orange [2] => red ) asort() – sort associative arrays in ascending order, according to…
jQuery Interview Quetions
What is the purpose of ‘this’ operator in JavaScript? JavaScript famous keyword this always refers to the current context. ——————————————— Global Variables − A global variable has global scope which means it is visible everywhere in your JavaScript code. Local Variables − A local variable will be visible only within a function where it is…