Skip to content

Instantly share code, notes, and snippets.

View themodernpk's full-sized avatar

Pradeep Kumar themodernpk

View GitHub Profile
; cPanel-generated php ini directives, do not edit
; Manual editing of this file may result in unexpected behavior.
; To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
; For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;

Guideline: Method name should typically be in camelCase, with the first character lower case

Topic Details
Source Link Laravel Naming Conventions
Guideline Followed: :badge[No]{type="danger"}
Details: Methods in your models in Laravel projects, like all methods in your Laravel projects, should be camelCase with the first character lower case.
GitHub Link City.php

::badge{type="danger"}

//================================================================================
let VueCommon = Vue.extend({
methods: {
//---------------------------------------------------------------------
async ajaxGet(url, params, callback )
@themodernpk
themodernpk / PhpStormTrailReset.bat
Last active August 9, 2021 13:02
PhpStorm Trail Reset
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
)
)
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
[2021-02-08 09:47:01] production.ERROR: Trying to get property 'content' of non-object {"exception":"[object] (ErrorException(code: 0): Trying to get property 'content' of non-object at /home/jalapeno/public_html/VaahCms/Modules/Cms/Entities/MenuItem.php:234)
[stacktrace]
#0 /home/jalapeno/public_html/VaahCms/Modules/Cms/Entities/MenuItem.php(234): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Trying to get p...', '/home/jalapeno/...', 234, Array)
#1 /home/jalapeno/public_html/vendor/webreinvent/vaahcms/Http/Controllers/Frontend/WelcomeController.php(54): VaahCms\\Modules\\Cms\\Entities\\MenuItem::getHomePage()
#2 /home/jalapeno/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): WebReinvent\\VaahCms\\Http\\Controllers\\Frontend\\WelcomeController->index()
#3 /home/jalapeno/public_html/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction('index', Array)
#4 /home/jalapeno/public_html/vendor/l
[2021-02-09 04:10:36] production.ERROR: file_get_contents(/home/jalapeno/public_html/VaahCms/Themes/Jalapeno/Http/Controllers/Frontend/../../../Resources/views/frontend/data/wp-login.php.json): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): file_get_contents(/home/jalapeno/public_html/VaahCms/Themes/Jalapeno/Http/Controllers/Frontend/../../../Resources/views/frontend/data/wp-login.php.json): failed to open stream: No such file or directory at /home/jalapeno/public_html/VaahCms/Themes/Jalapeno/Http/Controllers/Frontend/FrontendController.php:127)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'file_get_conten...', '/home/jalapeno/...', 127, Array)
#1 /home/jalapeno/public_html/VaahCms/Themes/Jalapeno/Http/Controllers/Frontend/FrontendController.php(127): file_get_contents('/home/jalapeno/...')
#2 /home/jalapeno/public_html/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): VaahCms\\Them
<template>
<div v-if="upload_url" :class="custom_class">
<div class="level">
<div class="level-left">
<div class="filepond">
<file-pond
:name="file_input_name"
<template>
<div v-if="root_assets" class="filepond" :class="custom_class">
<file-pond
:name="file_input_name"
:ref="uid"
:id="uid"
:maxFileSize="max_size"
:label-idle="label"
:allow-multiple="allow_multiple"
@themodernpk
themodernpk / Paypal.php
Created February 18, 2020 09:38
Paypal.php
<?php
namespace Modules\Assignable\Http\Controllers\Frontend;
use Anouar\Paypalpayment\Facades\PaypalPayment;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
@themodernpk
themodernpk / do-kubernetes.md
Last active January 7, 2021 20:02
Use DigitalOcean Kubernetes in GitLab - Tutorial for Windows 10 users

Connect DigitalOcean Kubernetes to GitLab - Tutorial for Windows 10 Users

It requires many step and there is no complete guide available. Hence, this tutorial exist.

Step 1: Create DigitalOcean Kubernetes

It's fairly straight forward process. Once it done, click on Download config file button. It will download .yaml file.

Step 2: Install kubectl

More information: https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-windows