If you have multiple folder on live/development server for demo purpose and you want to hide .env and package file then use below code. Create .htaccess file in root folder and past below code: # Disable index viewOptions -Indexes # Hide a specific file<Files “.*”> Order allow,deny Deny from all</Files> <Files…
Make a bootable pendrive in Linux
Using DD command: Step 1:- “sudo fdisk -l” to find usb name in the system. like /dev/sdc (you can identify by Drive size)Step 2:- “sudo dd bs=4M if=Downloads/boss-8.0-amd64-DVD-301019.iso of=/dev/sdc1 status=progress && sync”(Make Sure you have selected Correct Drive Name and iso File path) Restore back for Bootable Drive Step 1:- “sudo wipefs –all /dev/sdd”Step 2:-…
Docker Commands
Install Docker in Linux ubuntu sudo apt install docker.io Check Docker Status sudo systemctl status docker It provides all the information of docker, and also use to check it is installed or not. docker info It will show a list of commands that available for us with a short description of what it does. docker…
Git Commands
git –version Set user name and emailgit config –list ( for list all configuration settings)git config –global user.name “abhinav”git config –global user.email “abc@yopmail.com” Remove git added file:git reset <filename> Remove git commit file: local changes will not removegit reset HEAD^git reset HEAD ~ 1 Remove git commit with changes:git reset –hard HEAD^ Create Git .ignore…
Lazy loader/Infinite Scroll Pagination Using Laravel & jScroll – Laraget
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…