Blog

Survey Pillars Validation

User @extends('layouts.admin') @section('plugins.Summernote', true) @section('plugins.icheckBootstrap', true) @section('plugins.TempusDominusBs4', true) {{– Customize layout sections –}} @section('subtitle', __('Edit – Survey')) {{– Content body: main page content –}} @section('content_body') {{ __('Edit Survey') }} @if($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif @if(session()->has('message.level')) {!! session('message.content') !!} @endif {{ __('Loading…') }} {{ __('Loading survey creation…') }} 1 Survey 2 […]

DomPDF Font Setup

User $html = view('client.pdf-report')->render(); $pdf = Pdf::loadHTML($html)->setPaper('a4', 'landscape') ->setBasePath(public_path()); return $pdf->stream('document.pdf'); Quandox <style> @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); @page { padding:0px; margin: 0;} .section { overflow: hidden;height: 100%; page-break-after: always; padding: 0px 50px; background: url('{{ public_path('client/pdf/img/body_bg.jpg') }}') no-repeat; background-size: cover; background-position: top left;} .main-logo { text-align: center; height: 100%; display:flex; align-items:center; position:relative;} .main-logo img { width: 750px; margin-top:350px} […]

Laravel API Backend Setup

User How to use laravel for api backend only Assistant To use **Laravel as an API-only backend**, you can strip away or ignore the view/rendering part of Laravel and focus entirely on routing, controllers, resources, and authentication for APIs. Here's a complete setup guide: — ### ✅ 1. **Install Laravel (Skip Views/Blade)** composer create-project laravel/laravel […]

Cover Letter for Upwork

User Hi I have read your project requirements and understand the work process will involve in. I'm fully comfortable with English communication. I have 8 years working experience in laravel, myself and wordpress based website development and customization. I can online at 10 pm to 3 am IST time Also able to provide video via […]

Custom Post Type APIs

User create custom posttypes that should inlcude in wpgraphql and rest api Assistant To create a **custom post type** in WordPress that is **included in both WPGraphQL and the REST API**, you need to: 1. Register the post type with the appropriate arguments. 2. Ensure it is exposed to both APIs via `show_in_rest` and `show_in_graphql`. […]

Archive Orders Before 2021

User Put order before 2021 from posts and postsmeta tables to respective archive tables like post_archive Postmeta_archive Assistant To move orders (i.e., posts and their associated postmeta data) **before the year 2021** from the `posts` and `postmeta` tables into respective archive tables (`post_archive` and `postmeta_archive`), you can use SQL queries like these: ### 1. Create […]

Create Cordova Project

User cordova create hello com.example.hello HelloWorld with folder name Assistant To create a new Cordova project **with a custom folder name**, use the following command: cordova create hello com.example.hello HelloWorld ### Explanation: – `hello` → This is the **folder name** that will be created (your custom folder). – `com.example.hello` → This is the **reverse-domain-style package […]

PhoneGap Barcode Scanner Alternatives

User Phonegap barcode scanner deprecated Assistant Yes, the **PhoneGap Barcode Scanner plugin** (typically `phonegap-plugin-barcodescanner`) is **deprecated and no longer maintained**. ### Context: – **PhoneGap itself is officially discontinued** (Adobe sunset it in October 2020). – The barcode scanner plugin was originally part of the **Apache Cordova plugin ecosystem**, but many of those plugins are now […]

DDEV Concrete CMS Install

User admin1@concms-web:/var/www/html$ composer install No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information. Gathering patches from concretecms/dependency-patches (extra.patches). Loading composer repositories with package information Updating dependencies Lock file operations: 192 installs, 0 updates, 0 removals – Locking anahkiasen/html-object (1.4.4) – Locking carbonphp/carbon-doctrine-types (1.0.0) – Locking […]

Free eCommerce ConcreteCMS

User concreteCMS plus the core-commerce package free ecommerce package for concrete cms Assistant ConcreteCMS offers a **free eCommerce solution** through its **core-commerce package**, but it's **not included by default** in ConcreteCMS 9. Here's what you need to know: — ### ✅ **Free eCommerce Options for ConcreteCMS** #### 1. **Core Commerce Package (Community Store)** – **Official […]