You can check here for getting the latest version. Change the wget url to download newer versions.
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
| Scroll down animation on carousel - https://jsfiddle.net/qku98e4b/14/ |
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
| // Sample Query | |
| $page = Page::query() | |
| ->select('title',\DB::raw('advance_custom_fields->"$[*].field_type" AS field')) | |
| ->whereRaw('advance_custom_fields->"$[*].field_type" IS NOT NULL') | |
| ->whereRaw('JSON_SEARCH(advance_custom_fields, "one", "image") IS NOT NULL') | |
| ->get(); | |
| Table is pages | |
| json coloumn is advance_custom_fields |
Just test data and uptating one field using put:
document.getElementById('submitBtn').addEventListener('click', submitPost);
function submitPost(e) {
e.preventDefault();
const data = {petid: document.getElementById('petid').value,
species: document.getElementById('species').value,
_token: document.getElementsByName("_token")[0].value,
_method: document.getElementsByName("_method")[0].value};
This is a very basic TinyMCE component. It uses 'entangle'. This allows you to link a Livewire and Alpine property to eachother. If one value changes, the other does too.
Add tinymce.blade.php to views/components/input. This can be another
component folder too if you prefer, but keep in mind that you should also
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 | |
| // Flush rewrite rules after switch theme | |
| function my_rewrite_flush() { | |
| flush_rewrite_rules(); | |
| } | |
| add_action( 'after_switch_theme', 'my_rewrite_flush' ); | |
| // A little help so we can get the stylesheet from parent theme | |
| // Remove line 10-19 if this is not a child theme | |
| function my_enqueue_styles() { |
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 | |
| /** | |
| * Plugin Name: Convert ACF PHP to JSON | |
| * Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON. | |
| */ | |
| namespace ConvertAcfPhpToJson; | |
| /** | |
| * Add submenu item under 'Custom Fields' |
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
| # SETUP # | |
| DOMAIN=example.com | |
| PROJECT_REPO="[email protected]:example.com/app.git" | |
| AMOUNT_KEEP_RELEASES=5 | |
| RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
| RELEASES_DIRECTORY=~/$DOMAIN/releases | |
| DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
| # stop script on error signal (-e) and undefined variables (-u) |
- https://jwt.io/
- https://blog.pusher.com/build-rest-api-laravel-api-resources/
- https://stackoverflow.com/questions/33723033/single-sign-on-flow-using-jwt-for-cross-domain-authentication
- https://stackoverflow.com/questions/33900667/how-to-implement-logout-in-a-jwt-based-single-sign-on-authentication-architectur
- https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
- https://jcubic.wordpress.com/2014/06/20/cross-domain-localstorage/
- https://blog.zok.pw/web/2015/10/21/3rd-party-cookies-in-practice/
- https://gist.github.com/pbojinov/8965299
- https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage
Set up GitHub Actions to handle deployments for your Laravel application. This has similar functionality to Laravel Forge without the recurring cost. GitHub Actions can be used to automate your deployment process on every push to your repository.
- Server Access: Ensure you have SSH access to your server where the Laravel app will be deployed.
- Secrets: Store sensitive information such as your server's IP address, SSH username, and private SSH key in GitHub Secrets. Go to your GitHub repository, navigate to "Settings" > "Secrets and variables" > "Actions", and add the following secrets:
DEPLOY_SERVER_IP: Your server's IP address.DEPLOY_SERVER_USER: Your SSH username.DEPLOY_SERVER_KEY: Your private SSH key. Make sure this key is authorized to access your server (~/.ssh/authorized_keys).
DEPLOY_SERVER_DIR: The directory where you'd like to deploy your app, relative to/var/www/. Ex:example.com
OlderNewer