Artisan command to reset a user's password programmatically:
php artisan make:command ResetUserPassword
Open the generated command file app/Console/Commands/ResetUserPassword.php
and update the handle method:
use App\Models\User;
Artisan command to reset a user's password programmatically:
php artisan make:command ResetUserPassword
Open the generated command file app/Console/Commands/ResetUserPassword.php
and update the handle method:
use App\Models\User;
function listAllEventListeners() { | |
const allElements = Array.prototype.slice.call(document.querySelectorAll('*')); | |
allElements.push(document); | |
allElements.push(window); | |
const types = []; | |
for (let ev in window) { | |
if (/^on/.test(ev)) types[types.length] = ev; | |
} |
<?php | |
function toSqlBoolean($value) { | |
// Convert the value to a boolean first | |
$booleanValue = filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE); | |
// Return SQL boolean equivalent | |
return $booleanValue ? 1 : 0; | |
} |
from google.oauth2 import service_account | |
from googleapiclient.discovery import build | |
from datetime import datetime | |
import csv | |
# Set up credentials and analytics service | |
SCOPES = ['https://www.googleapis.com/auth/analytics.readonly'] | |
KEY_FILE_LOCATION = 'path/to/your-credentials-file.json' | |
VIEW_ID = 'your-view-id' |
<?php | |
/*** | |
* Populate ACF field (list_gravity_forms) with list of active Gravity Forms | |
***/ | |
add_filter( 'acf/load_field/name=list_gravity_forms', function( $field ) { | |
$forms = GFFormsModel::get_forms(); | |
// Filter active forms | |
$forms = array_filter( $forms, function( $form ) { |
<?php | |
// add meta boxes on entry detail | |
add_filter('gform_entry_detail_meta_boxes', function( $meta_boxes ){ | |
// check that Webhooks class is available | |
if( class_exists('GF_Webhooks') ){ | |
$meta_boxes['webhooks'] = [ | |
'title' => 'Webhooks', |
/** | |
* Gravity Perks // Populate Anything // Explode Commas into Selected Choices | |
* https://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
* | |
* Plugin Name: GPPA Explode Commas into Selected Choices | |
* Plugin URI: https://gravitywiz.com/documentation/gravity-forms-populate-anything/ | |
* Description: Convert comma-delimited values into selected choices when populated into a choice-based field. | |
* Author: Gravity Wiz | |
* Version: 0.1 | |
* Author URI: https://gravitywiz.com |
<?php | |
// The field accepts a value with this structure | |
$value = [ | |
'address' => '123 Example St, Townsville XYZ 1234, Country', | |
'lat' => - 38.1486228, | |
'lng' => 144.360414, | |
'zoom' => 14, | |
'place_id' => 'Ei0xMjMgTW9vcmFib29sIFN0LCBHZWVsb25nIFZJQyAzMjIwLCBBdXN0cmFsaWEiMBIuChQKEgmX0JaIHBTUahFyH_LC9sYD8hB7KhQKEglDz-DYDxTUahECZY8QisCjzg', | |
'street_number' => 123, |
<?php | |
// The field accepts a value with this structure | |
$value = [ | |
'address' => '123 Example St, Townsville XYZ 1234, Country', | |
'lat' => - 38.1486228, | |
'lng' => 144.360414, | |
'zoom' => 14, | |
'place_id' => 'Ei0xMjMgTW9vcmFib29sIFN0LCBHZWVsb25nIFZJQyAzMjIwLCBBdXN0cmFsaWEiMBIuChQKEgmX0JaIHBTUahFyH_LC9sYD8hB7KhQKEglDz-DYDxTUahECZY8QisCjzg', | |
'street_number' => 123, |
This is a proposal to extend a compiled Vuejs application at runtime by adding actions and filters. This would allow for permitting functional extension to the data models/patterns or runtime executions of the application with discrete injection points by the development team. The purpose is to allow extensibility of functionality or filtering of data that the original application may not have considered or leveraged due to constraints. This concept is a potential benefit/risk because it gives discrete exposure to aspects of the application during runtime. By exposing controlled points during runtime for global access into the vuejs application this allows other UI frameworks within the same global space an opportunity to hook into application based api with promise driven callbacks.
[Sequence diagram for reference](https://viewer.diagrams.net/?tags=%7B%7D&highlight=0000ff&edit=_blank&layers=1&nav=1&title=vuejs-actions-filters.drawio#R%3Cmxfile%3E%3Cdiagram%20name%3D%22Overvi