- https://speakerdeck.com/willroth/50-laravel-tricks-in-50-minutes
- https://www.reddit.com/r/laravel/comments/3to60i/50_laravel_tricks/
- 1. Automatic Model Validation
[ | |
{ | |
"in": { | |
"user_address": "0x9bb54B42fA50131905897899873bD15fB3C02ad5", | |
"from_chain_id": 8453, | |
"to_chain_id": 42161, | |
"from_token_address": "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE", | |
"to_token_address": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", | |
"amount_in": "0.001335290564107857", | |
"superpositions_amount_in": "", |
name: Cancel previous runs | |
on: | |
push: | |
branches: | |
- main | |
- next | |
pull_request: | |
jobs: |
name: Semantic PR title | |
on: | |
pull_request_target: | |
types: | |
- opened | |
- edited | |
- synchronize | |
jobs: |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>zkCheckout test launcher</title> | |
<script type="text/javascript" src="https://cdn.ethers.io/lib/ethers-5.0.umd.min.js"></script> | |
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/main.js"></script> | |
<link data-n-head="1" data-hid="shortcut-icon" rel="shortcut icon" href="/_nuxt/icons/icon_64x64.3fdd8f.png"> | |
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Sans:300,400,500,600%7CFira+Sans+Condensed:200,400,500,600%7CFira+Code:300" media="all"> |
### Keybase proof | |
I hereby claim: | |
* I am keriat on github. | |
* I am keriat (https://keybase.io/keriat) on keybase. | |
* I have a public key whose fingerprint is 6DDE 0DBF B6BB 826C 5A5C 1B6F 65D6 488E 07B4 03F5 | |
To claim this, I am signing this object: |
# One liner | |
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
# Explained | |
wget \ | |
--recursive \ # Download the whole site. | |
--page-requisites \ # Get all assets/elements (CSS/JS/images). | |
--adjust-extension \ # Save files with .html on the end. | |
--span-hosts \ # Include necessary assets from offsite as well. | |
--convert-links \ # Update links to still work in the static version. |
{"id":5702,"name":"5570","creationDate":1543576934000,"clientId":2710,"activitySubtypeId":1014167,"loanTypeId":101531,"loanStage":1,"liabilityId":101931,"creditProductId":101400,"creditProductName":"Web_10","creditFieldReq":{"id":10127521,"dateCalcMethodId":101231,"allowHolidaysPayment":true,"shortTermControl":false,"interestChargeMethodId":101863,"interestCalcMethodId":101222,"calcIntOnIssueDate":false,"calcInterestOnDelinqBalance":false,"calcArrearInterest":false,"arrearInterestFirstDay":0,"arrearInterestLastDay":0,"principalDistribMethodId":101352,"forepaymentConsiderationMethodId":101592,"creditLineId":101922,"trancheDuration":30,"interestForTranche":10,"interestRateTypeId":101122,"chargeExtraInterest":false,"interestFreePeriod":null,"interestGracePeriod":0,"trancheCount":10,"repaymentSequenceId":101207,"mandatoryChargePeriod":2,"allowPrepayment":true,"prolongationPeriod":0,"earlyProlongationFromCurrentDate":false,"penaltyTypeId":101271,"calendarDaysPenalty":false,"firstWeekendWithoutPenalty":false,"stopP |
<?php | |
Fruitframe_PostType::add('news', [ | |
'public' => true, | |
'exclude_from_search' => true, | |
'menu_icon' => 'dashicons-clock', | |
'menu_position' => 10, | |
'has_archive' => true, | |
'hierarchical' => false, | |
'taxonomies' => ['category', 'tag'], | |
'show_in_nav_menus' => true, |