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…
Category: php
php
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
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…
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…
PHP Interviwe Question on php.ini file
Five function of PHP.ini file? Maximum limit of all paramitters which we can set in php.ini file? SOME basic functions of php.ini file : ;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. ; http://php.net/file-uploads file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if…
htaccess File Interview Quetions
<Directory> </Directory> 400 – Bad request 401 – Authorization Required 403 – Forbidden 404 – File Not Found 500 – Internal Server Error ErrorDocument 404 /filenotfound.html DirectoryIndex index.php3 index.php pictures.pl index.html default.htm ——————– The use of .htaccess files can be disabled completely by setting the AllowOverride directive to none: AllowOverride None ———– mod_rewrite directives must…