commands: | |
"01": | |
command: curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o /usr/local/bin/wp | |
"02": | |
command: chmod +x /usr/local/bin/wp |
<?php | |
/** | |
* Add this to your setup.php | |
* Usage @loop( $wp_query ) or $loop and end with @endloop | |
* the new $loop variable is available | |
*/ | |
/** | |
* Create @loop Blade directive |
/* | |
* Smooth scroll to anchor link | |
* Automatically detects the hash and scroll smoothly to anchor link with URL hashchange | |
* Author: Soham Banerjee @soham2008xyz | |
*/ | |
// If you need more autonomy, | |
// You can replace hash detection with a data-attribute | |
// e.g. $("[data-scroll='smooth']") |
This is a compiled list of Laravel interview questions. If Laravel is an engineer's PHP framework of choice, they definitely have potential to be a good candidate, but a lot of new PHP engineers have been into Laravel too. The framework itself is very welcoming to newcomers, which makes it easy for beginners to feel that they know more than they really do.
1. How long have you been using Laravel?
This question can help decide what level of questions to ask.
Here are the simple steps needed to create a deployment from your local Git repository to a server based on this in-depth tutorial.
You are developing in a working copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like Deepl.io to act upon a webhook that's triggered the deployment service.
But here, we add a "bare" git repository that we create on the production server and publish our branch (i.e. master) directly to that server. This repository acts upon the push event using a 'git-hook' to move the files into a deployment directory on your server. No need for a middle man.
This creates a scenario where there is no middle
I have collected and moderated these ideas from various public sources and put into one place so that problem solvers and solution developers may find inspirations. Because I wish to update it regularly, I have setup as a single page wiki. You may try these ideas on hackathons/competitions/research; some are quite intense problems and some are not. Many of the problems were prepared keeping Dhaka/Bangladesh in mind, but of course can be applied to just about any underdeveloped/developing and sometimes developed countries.
- Eradicate Extreme Poverty and Hunger
- Education
- Healthcare
- Governance
<?php | |
function bootstrap_gallery( $output = '', $atts, $instance ) | |
{ | |
if (strlen($atts['columns']) < 1) { | |
$columns = 3; | |
} | |
else { | |
$columns = $atts['columns']; | |
} |
# Laravel queue worker using systemd | |
# ---------------------------------- | |
# | |
# /lib/systemd/system/queue.service | |
# | |
# run this command to enable service: | |
# systemctl enable queue.service | |
[Unit] | |
Description=Laravel queue worker |