This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Script Name: Wordpress Hooks & Filters Flow | |
Plugin URI: http://planetozh.com/blog/my-projects/wordpress-hooks-filter-flow/ | |
Description: Lists hooks and their associated filters/actions for your blog. Meant to provide debugging help. | |
Version: 1.0 | |
Author: Ozh | |
Author URI: http://planetOzh.com/ | |
*/ |
#Teclas de atalhos do PHPStorm com funções semelhantes ao Sublime Text, e outras interessantes.
Sublime Text | PHPStorm | Função |
---|---|---|
CMD+P | CMD+Shift+O | Busca por arquivos no projeto |
CMD+R | CMD+F12 (1) | Lista os métodos da classe e outros símbolos |
CMD+F | CMD+F | Busca no arquivo |
CMD+Option+F | CMD+R | Busca e troca os valores no arquivo |
CMD+Shift+F | CMD+Shift+F | Busca, busca e troca e outros em um determinado caminho com várias regras. |
CMD+D (2) | Option+Up (2) | Seleciona palavra |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace GM\VirtualPages; | |
/** | |
* @author Giuseppe Mazzapica <[email protected]> | |
* @license http://opensource.org/licenses/MIT MIT | |
*/ | |
class Controller implements ControllerInterface { | |
private $pages; |
Inertia.js ships with a fantastic form helper but it falls short when also using API/Axios calls in your project.
Here's a composable, built on top of the Inertia's form helper that hooks into it to replace the API calls with Axios.
To use, just replace useForm
with useAPIForm
.
const form = useAPIForm({
title: '',
});