While fetching some 10000 rows from mysql db using PHP, its showing only 1000 rows on Godaddy shared server but it’s working fine on laptop localhost [closed]

While fetching some 10000 rows from mysql db using PHP, its showing only 1000 rows on Godaddy shared server but it’s working fine on laptop localhost

To fetch all records under 15000 but select option is not fetching more than 1000 rows thats after putting limit 1000 on godaddy shared srever hosting

How to solve WordPress Webiste erros; Response is not a valid json response/ WP_Theme_JSON_Resolver::get_user_data()?

I am facing multiple errors on my wordpress website. I am not able to solve them, I have tried multiple solutions from across the web, but none have worked. Whenever I try to upload an image, I get the error that:

 The response is not a valid json reponse;

Also I face difficulty in updating present pages on my website and I also face issues in adding new plugins and themes. SSL plugin also gives error that:

Status code: 500, Server response: <script></script>{"fields":[{"default":false,"id":"ssl_enabled","visible":true,"disabled":false,"rec...

I tried debugging in wp-config file and get the foloowing erros on dashboard:

Notice: Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the low_diagnostic_glance_styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Notice: Function is_feed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Notice: Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the low_diagnostic_glance_custom_admin_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Notice: WP_Theme_JSON_Resolver::get_user_data(): Error when decoding a theme.json schema for user data. Syntax error in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Notice: WP_Theme_JSON_Resolver::get_user_data(): Error when decoding a theme.json schema for user data. Syntax error in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Notice: WP_Theme_JSON_Resolver::get_user_data(): Error when decoding a theme.json schema for user data. Syntax error in /home/s3uoygwak2m1/public_html/wp-includes/functions.php on line 6085

Functions.php of theme:

<?php
/**
 * Astra functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Astra
 * @since 1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly.
}

/**
 * Define Constants
 */
define( 'ASTRA_THEME_VERSION', '4.7.3' );
define( 'ASTRA_THEME_SETTINGS', 'astra-settings' );
define( 'ASTRA_THEME_DIR', trailingslashit( get_template_directory() ) );
define( 'ASTRA_THEME_URI', trailingslashit( esc_url( get_template_directory_uri() ) ) );

/**
 * Minimum Version requirement of the Astra Pro addon.
 * This constant will be used to display the notice asking user to update the Astra addon to the version defined below.
 */
define( 'ASTRA_EXT_MIN_VER', '4.7.0' );

/**
 * Setup helper functions of Astra.
 */
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-theme-options.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-theme-strings.php';
require_once ASTRA_THEME_DIR . 'inc/core/common-functions.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-icons.php';

define( 'ASTRA_PRO_UPGRADE_URL', astra_get_pro_url( 'https://wpastra.com/pro/', 'dashboard', 'free-theme', 'upgrade-now' ) );
define( 'ASTRA_PRO_CUSTOMIZER_UPGRADE_URL', astra_get_pro_url( 'https://wpastra.com/pro/', 'customizer', 'free-theme', 'upgrade' ) );

/**
 * Update theme
 */
require_once ASTRA_THEME_DIR . 'inc/theme-update/astra-update-functions.php';
require_once ASTRA_THEME_DIR . 'inc/theme-update/class-astra-theme-background-updater.php';

/**
 * Fonts Files
 */
require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-font-families.php';
if ( is_admin() ) {
    require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-fonts-data.php';
}

require_once ASTRA_THEME_DIR . 'inc/lib/webfont/class-astra-webfont-loader.php';
require_once ASTRA_THEME_DIR . 'inc/lib/docs/class-astra-docs-loader.php';
require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-fonts.php';

require_once ASTRA_THEME_DIR . 'inc/dynamic-css/custom-menu-old-header.php';
require_once ASTRA_THEME_DIR . 'inc/dynamic-css/container-layouts.php';
require_once ASTRA_THEME_DIR . 'inc/dynamic-css/astra-icons.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-walker-page.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-enqueue-scripts.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-gutenberg-editor-css.php';
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-wp-editor-css.php';
require_once ASTRA_THEME_DIR . 'inc/dynamic-css/block-editor-compatibility.php';
require_once ASTRA_THEME_DIR . 'inc/dynamic-css/inline-on-mobile.php';
require_once ASTRA_THEME_DIR . 'inc/dynamic-css/content-background.php';
require_once ASTRA_THEME_DIR . 'inc/class-astra-dynamic-css.php';
require_once ASTRA_THEME_DIR . 'inc/class-astra-global-palette.php';

/**
 * Custom template tags for this theme.
 */
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-attr.php';
require_once ASTRA_THEME_DIR . 'inc/template-tags.php';

require_once ASTRA_THEME_DIR . 'inc/widgets.php';
require_once ASTRA_THEME_DIR . 'inc/core/theme-hooks.php';
require_once ASTRA_THEME_DIR . 'inc/admin-functions.php';
require_once ASTRA_THEME_DIR . 'inc/core/sidebar-manager.php';

/**
 * Markup Functions
 */
require_once ASTRA_THEME_DIR . 'inc/markup-extras.php';
require_once ASTRA_THEME_DIR . 'inc/extras.php';
require_once ASTRA_THEME_DIR . 'inc/blog/blog-config.php';
require_once ASTRA_THEME_DIR . 'inc/blog/blog.php';
require_once ASTRA_THEME_DIR . 'inc/blog/single-blog.php';

/**
 * Markup Files
 */
require_once ASTRA_THEME_DIR . 'inc/template-parts.php';
require_once ASTRA_THEME_DIR . 'inc/class-astra-loop.php';
require_once ASTRA_THEME_DIR . 'inc/class-astra-mobile-header.php';

/**
 * Functions and definitions.
 */
require_once ASTRA_THEME_DIR . 'inc/class-astra-after-setup-theme.php';

// Required files.
require_once ASTRA_THEME_DIR . 'inc/core/class-astra-admin-helper.php';

require_once ASTRA_THEME_DIR . 'inc/schema/class-astra-schema.php';

/* Setup API */
require_once ASTRA_THEME_DIR . 'admin/includes/class-astra-api-init.php';

if ( is_admin() ) {
    /**
     * Admin Menu Settings
     */
    require_once ASTRA_THEME_DIR . 'inc/core/class-astra-admin-settings.php';
    require_once ASTRA_THEME_DIR . 'admin/class-astra-admin-loader.php';
    require_once ASTRA_THEME_DIR . 'inc/lib/astra-notices/class-astra-notices.php';
}

/**
 * Metabox additions.
 */
require_once ASTRA_THEME_DIR . 'inc/metabox/class-astra-meta-boxes.php';

require_once ASTRA_THEME_DIR . 'inc/metabox/class-astra-meta-box-operations.php';

/**
 * Customizer additions.
 */
require_once ASTRA_THEME_DIR . 'inc/customizer/class-astra-customizer.php';

/**
 * Astra Modules.
 */
require_once ASTRA_THEME_DIR . 'inc/modules/posts-structures/class-astra-post-structures.php';
require_once ASTRA_THEME_DIR . 'inc/modules/related-posts/class-astra-related-posts.php';

/**
 * Compatibility
 */
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-gutenberg.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-jetpack.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/woocommerce/class-astra-woocommerce.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/edd/class-astra-edd.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/lifterlms/class-astra-lifterlms.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/learndash/class-astra-learndash.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-beaver-builder.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-bb-ultimate-addon.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-contact-form-7.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-visual-composer.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-site-origin.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-gravity-forms.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-bne-flyout.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-ubermeu.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-divi-builder.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-amp.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-yoast-seo.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/surecart/class-astra-surecart.php';
require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-starter-content.php';
require_once ASTRA_THEME_DIR . 'inc/addons/transparent-header/class-astra-ext-transparent-header.php';
require_once ASTRA_THEME_DIR . 'inc/addons/breadcrumbs/class-astra-breadcrumbs.php';
require_once ASTRA_THEME_DIR . 'inc/addons/scroll-to-top/class-astra-scroll-to-top.php';
require_once ASTRA_THEME_DIR . 'inc/addons/heading-colors/class-astra-heading-colors.php';
require_once ASTRA_THEME_DIR . 'inc/builder/class-astra-builder-loader.php';

// Elementor Compatibility requires PHP 5.4 for namespaces.
if ( version_compare( PHP_VERSION, '5.4', '>=' ) ) {
    require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-elementor.php';
    require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-elementor-pro.php';
    require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-web-stories.php';
}

// Beaver Themer compatibility requires PHP 5.3 for anonymous functions.
if ( version_compare( PHP_VERSION, '5.3', '>=' ) ) {
    require_once ASTRA_THEME_DIR . 'inc/compatibility/class-astra-beaver-themer.php';
}

require_once ASTRA_THEME_DIR . 'inc/core/markup/class-astra-markup.php';

/**
 * Load deprecated functions
 */
require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-filters.php';
require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-hooks.php';
require_once ASTRA_THEME_DIR . 'inc/core/deprecated/deprecated-functions.php';


function add_custom_js_inline() {
    ?>
    <script>
    document.addEventListener('DOMContentLoaded', () => {
        const observerOptions = {
            root: null,
            rootMargin: '0px',
            threshold: 0.1
        };

        const observer = new IntersectionObserver((entries, observer) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('visible');
                    observer.unobserve(entry.target);
                }
            });
        }, observerOptions);

        document.querySelectorAll('.edplus_anim-L5I9H8second, .edplus_anim-L5I9H8third').forEach(element => {
            observer.observe(element);
        });
    });
    </script>
    <?php
}
add_action('wp_footer', 'add_custom_js_inline');

Integration of PHP frontend app (with Angular v1.4) into React.js main SPA project as a microfrontend

I have a front-end project created using PHP, and inside it, we are using Angular v1.4 for building and routing. My point is, we are now working to add a new technology stack like React.js. So, I have created a React.js main SPA project and added the authentication part for this main SPA. All existing applications created with React are now added to the main SPA as microfrontends. However, I still have one pending part: this PHP project. How do I implement it as a microfrontend and use it in the main SPA project?

still i need a recommendation from the team

Laravel 11.x ldap authentication for web and basic authentication for api

I have successfully implemented authentication using ldap in Laravel 11.x with LdapRecord. However, I am unable to use Basic Authentication for api. Before using ldap, both web and api were using Basic Authentication. Now it returns 404 for api.

As an example, when sending a post request to http://192.168.56.101/api/user in api.php:

Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth.basic');

I am using Insomnia with basic authentication set:

enter image description here

My setup as follows:

config/auth.php

'defaults' => [
    'guard' => env('AUTH_GUARD', 'web'),
    'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
],

'guards' => [
    'web' => [
        'driver' => 'session',
        'provider' => 'ldap',
    ],
    'api' => [
        'driver' => 'session',
        'provider' => 'users',
    ],
],

'providers' => [
    'users' => [
        'driver' => 'eloquent',
        'model' => AppModelsUser::class,
    ],

    'ldap' => [
        'driver' => 'ldap',
        'model' => AppLdapUser::class,
        'rules' => [],
        'scopes' => [],
        'database' => [
            'model' => AppModelsUser::class,
            'sync_passwords' => false,
            'sync_attributes' => [
                'name' => 'cn',
                'email' => 'mail',
                'user_id' => 'uid',
            ],
        ],
    ],
],

When I use the api, the following is logged:
enter image description here

Why does it seem to be using ldap?

Is it even possible to enable ldap for both web and basic for api?
I am keen on using Basic Authentication for API because it is simplest to use.
Worse to worse, I am also OK to use ldap for both web and api as an alternative

How Can I Retrieve Refresh_token from Big Commerce?

I have the following code to get Access token and it returns access token, but tje response contains not refresh token. What could be the reason?

$token_url = 'https://login.bigcommerce.com/oauth2/token';
$post_data = [
    'client_id' => $client_id,
    'client_secret' => $client_secret,
    'code' => $code,
    'grant_type' => 'authorization_code',
    'redirect_uri' => $redirect_uri,
];

Laravel signed url to be used in Shopify

I would like to understand more regarding Laravel signed URL. The idea is, in my Shopify Online Store, the user can click this link which redirect into a website I developed in Laravel. However I do not fully get it on how can I do this.

So far I did all this by referring to some tutorial I browse in google. This is my web.php:

<?php

use AppHttpControllersAuthController;
use AppHttpControllersRequestPointTransferController;
use IlluminateSupportFacadesRoute;
use AppModelsUser;
use IlluminateHttpRequest;


Route::get('/', function () {
     return redirect('request-form');
});

//Redirect to the website I develop for this specific customer (what i plan)
Route::get('request-form', function (Request $request) {
     return view('modules.request_point_transfer.index');
})->name('managepoints')->middleware('signed');

Route::get('generate-url',RequestPointTransferController::class);

And my controller:

<?php

namespace AppHttpControllers;

use IlluminateHttpRequest;
use IlluminateSupportFacadesURL;
use AppServicesRequestPointTransferService;
use AppServicesRequestPointTransferAPIService;

class RequestPointTransferController extends Controller
{
    protected $RequestPointTransferService;
    protected $RequestPointTransferAPIService;

    public function __invoke(Request $request)
    {
        // dd($request->all());
        $url = URL::signedRoute('managepoints',now()->addMinutes(20));
        return $url;
    }

I dont fully understand since the url has been generated, how can I use the url for my Shopify Online Store? Is it like in the Shopify, I can display the URL (probably in the account settings for the online store) example: http://127.0.0.1:8000/mywebsite/myemail.gmail.com and when they click it will go to my website? Sorry I am new to this. Thank you very much.

how to continue array numbers in javascript whose data is displayed with a php loop [duplicate]

I have a phone number table in the database like this:

id_wa id_proyek bagian no_wa
65 112 renev 087665775667
66 112 renev 087665445334
67 112 renev 087665445444

I show it with this php code:

<label for="inlineinput" class="col-md-3 col-form-label">No WA</label>
<?php
    $no=0;
    $cek=mysqli_query($koneksi,"select no_wa from wa_renev where id_proyek='112'");
    while($data = mysqli_fetch_array($cek)){
    $no++
?>
<div class='col-md-9 p-0'>
<input name='no_wa[<?php echo"$no";?>]' value='' type='text' class='form-control input-full' id='inlineinput' placeholder='Masukkan No WA (ex:087712333488)'/>
</div>
<?php
}
?>

And I use this JavaScript code to add another cellphone number with dynamically:

<script language="JavaScript" type="text/JavaScript">
counter = 0; //I've replaced it with the number 1 or 2 or 3 for this counter but why does the script error?
function action()
{
counterNext = counter + 1;
document.getElementById("input"+counter).innerHTML = "<div class='col-md-9 p-0'><input name='no_wa["+counterNext+"]' value='' type='text' class='form-control input-full' id='inlineinput' placeholder='Masukkan No WA (ex:087712333488)'/></div><div id="input"+counterNext+""></div>";
counter++;
}
</script>

<div id="input0">
</div>
<a href="javascript:action();"><span class="badge badge-primary">Tambah WA</span></a><br/>

How can I continue the array from my first code when the cellphone number is added again ?

results display

Post method issue with google conversion linker from GTM

I’ve recently started using Google Tag Manager (GTM) on my site. In GTM, I ‘ve got the Conversion Linker activated, which, if you come to the site from a Google Ad, will add a a few parameters to the url. The site is using mod_rewrite and htaccess (Enable linking on all page URLs in GTM, conversion linker).

example, example.org/articles/2345/?_ad_source=1&_gl=2342323

The form I have setup is using a post method. But, if GTM adds their parameters to the url, the form stops working.

<form id="form" name="form" method="index.php">
<input type="hidden" name="type" id="type" value="process">
<input type="text" name="test" id="test" value="testing">
<input type="submit" value="submit">
</form>

and I’ve also tried

<form id="form" name="form" method="index.php?type=process">
<input type="text" name="test" id="test" value="testing">
<input type="submit" value="submit">
</form>

if the _gl codes aren’t added as a parameter (Enable linking on all page URLs in GTM), everything is working fine. But with the _gl parameters added, posting the form, the post fields aren’t in the $_post and it seems to be getting the $_get array information instead.

I’m guessing there is something I should be adding to my htaccess to deal with this?

Everything works perfectly with ‘Enable linking on all page URLs’ deactivated in GTM, conversion linker.

I’ve tried testing things with the http-post and http-get arrays, and I’ve tried to catch the post variables earlier on the field.

So I’m not sure what I’d need to change in php or in htaccess, but I’m not quite sure what to look for.

I cannot display data from the read component to the information component in my Livewire application

I cannot change public data in the Product Information class.

    <?php
    
    namespace AppLivewire;
    
    use AppModelsProduct;
    use LivewireComponent;
    use LivewireWithPagination;
    use LivewireWithoutUrlPagination;
    
    class ProductRead extends Component
    {
        use WithPagination, WithoutUrlPagination;
    
    
    
        public function render()
        {
            $data = Product::latest()->paginate(8);
            return view('livewire.product-read',[
                'productData' => $data
            ]);
        }
    
        public function getProduct($id)
        {
            $product = Product::find($id);
            $this->dispatch('product-row', $product); // Emit event correctly
        }
    }

I have tried changing the public variable but it still doesn’t work. The data has been successfully retrieved after doing dd($product), but it still doesn’t appear in the view. I have also provided a wire model in the input


<?php

namespace AppLivewire;
use LivewireAttributesOn;
use LivewireComponent;

class ProductInformation extends Component
{
    public $id;
    public $product_name;
    public $category;
    public $price;
    public $description;

    #[On('product-row')]
    public function updateProductInformationList($product)
    {
        // dd($product);
        $this->id = $product['id'];
        $this->product_name = $product['product_name'];
        $this->category = $product['category'];
        $this->price = $product['price'];
        $this->description = $product['description'];
    }

    public function render($product)
    {
        return view('livewire.product-information');
    }


}

Product Information

Detail information of product.

Edit mode

</div>
<div class="mt-6 border-t border-gray-100">
    <dl class="divide-y divide-gray-100">
        <form wire:submit.prevent="edit">
            <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
                <dt class="text-sm font-medium leading-6 text-gray-900">Product Name</dt>
                <dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
                    <input x-bind:disabled="!editing" type="text" 
                        wire:model="product_name" 
                        class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-teal-500 focus:outline-none focus:ring-0 focus:border-teal-600 peer"
                        placeholder=" " required />
                </dd>
            </div>
            <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0 items-center">
                <dt class="text-sm font-medium leading-6 text-gray-900">Category</dt>
                <dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
                    <input x-bind:disabled="!editing" type="text" name="caregory" id="caregory"
                        placeholder="makanan" wire:model="caregory"
                        class="block py-2.5 px-0 w-full text-sm leading-6 text-gray-700 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-teal-500 focus:outline-none focus:ring-0 focus:border-teal-600 peer"
                        placeholder=" " required />
                </dd>
            </div>
            <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
                <dt class="text-sm font-medium leading-6 text-gray-900">Price</dt>
                <dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
                    <input x-bind:disabled="!editing" type="text" name="price" id="price"
                        wire:model="price"
                        class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-teal-500 focus:outline-none focus:ring-0 focus:border-teal-600 peer"
                        placeholder=" " required />
                </dd>
            </div>
            <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
                <dt class="text-sm font-medium leading-6 text-gray-900">Description</dt>
                <dd class="mt-1 text-sm leading-6 text-gray-700 sm:col-span-2 sm:mt-0">
                    <textarea x-bind:disabled="!editing" id="description" rows="4" wire:model="description"
                        class="block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-teal-500 focus:border-teal-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-teal-500 dark:focus:border-teal-500"
                        placeholder="Leave a comment..."></textarea>
                </dd>
            </div>
        </form>
        <div class="px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0">
            <dt class="text-sm font-medium leading-6 text-gray-900">Attachments</dt>
            <dd class="mt-2 text-sm text-gray-900 sm:col-span-2 sm:mt-0">
                <ul role="list" class="divide-y divide-gray-100 rounded-md border border-gray-200">
                    <li class="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-6">
                        <div class="flex w-0 flex-1 items-center">
                            <svg class="h-5 w-5 flex-shrink-0 text-gray-400" viewBox="0 0 20 20" fill="currentColor"
                                aria-hidden="true">
                                <path fill-rule="evenodd"
                                    d="M15.621 4.379a3 3 0 00-4.242 0l-7 7a3 3 0 004.241 4.243h.001l.497-.5a.75.75 0 011.064 1.057l-.498.501-.002.002a4.5 4.5 0 01-6.364-6.364l7-7a4.5 4.5 0 016.368 6.36l-3.455 3.553A2.625 2.625 0 119.52 9.52l3.45-3.451a.75.75 0 111.061 1.06l-3.45 3.451a1.125 1.125 0 001.587 1.595l3.454-3.553a3 3 0 000-4.242z"
                                    clip-rule="evenodd" />
                            </svg>
                            <div class="ml-4 flex min-w-0 flex-1 gap-2">
                                <span class="truncate font-medium">resume_back_end_developer.pdf</span>
                                <span class="flex-shrink-0 text-gray-400">2.4mb</span>
                            </div>
                        </div>
                        <div class="ml-4 flex-shrink-0">
                            <a href="#" class="font-medium text-teal-600 hover:text-teal-500">Download</a>
                        </div>
                    </li>
                    <li class="flex items-center justify-between py-4 pl-4 pr-5 text-sm leading-6">
                        <div class="flex w-0 flex-1 items-center">
                            <svg class="h-5 w-5 flex-shrink-0 text-gray-400" viewBox="0 0 20 20" fill="currentColor"
                                aria-hidden="true">
                                <path fill-rule="evenodd"
                                    d="M15.621 4.379a3 3 0 00-4.242 0l-7 7a3 3 0 004.241 4.243h.001l.497-.5a.75.75 0 011.064 1.057l-.498.501-.002.002a4.5 4.5 0 01-6.364-6.364l7-7a4.5 4.5 0 016.368 6.36l-3.455 3.553A2.625 2.625 0 119.52 9.52l3.45-3.451a.75.75 0 111.061 1.06l-3.45 3.451a1.125 1.125 0 001.587 1.595l3.454-3.553a3 3 0 000-4.242z"
                                    clip-rule="evenodd" />
                            </svg>
                            <div class="ml-4 flex min-w-0 flex-1 gap-2">
                                <span class="truncate font-medium">coverletter_back_end_developer.pdf</span>
                                <span class="flex-shrink-0 text-gray-400">4.5mb</span>
                            </div>
                        </div>
                        <div class="ml-4 flex-shrink-0">
                            <a href="#" class="font-medium text-teal-600 hover:text-teal-500">Download</a>
                        </div>
                    </li>
                </ul>
            </dd>
        </div>
    </dl>
</div>
<button type="button" x-on:click="detail = false"
    class="absolute top-7 right-7 z-10 text-slate-700 border border-slate-700 hover:bg-slate-700 hover:text-white focus:ring-4 focus:outline-none focus:ring-slate-300 font-medium rounded-full text-sm py-1 px-1.5 text-center inline-flex items-center dark:border-slate-500 dark:text-slate-500 dark:hover:text-white dark:focus:ring-slate-800 dark:hover:bg-slate-500">
    <span class="material-symbols-outlined text-sm">
        close
    </span>
</button>

Laravel showing only Homepage and all other routes showing 404 on shared hosting

I am using ionos shared hosting and pointing my subdomain to laravel and react public folder but only / homepage is working all else is showing 404. I tried to dd on /welcome route but i see it’s not even pointing index.php. Also uploaded the production files of js to run the router.js that i believe it should first point to index.php but it’s not doing that.

What can possibly go wrong?

.htaccess file here:

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
 </IfModule>

How to attach files in raw body in Postman? [closed]

I am trying to make a POST request with a file in a raw JSON body. I haven’t found a clear-cut way to do this in Postman with raw body. Anyone know how I can accomplish this?

I know that I can use multipart/form-data, but that’s not going to work with my requirements.

how to auto login after signUp using Auth.php in Laravel11

Auth.php

<?php

return [


    'defaults' => [
        'guard' => env('AUTH_GUARD', 'web'),
        'passwords' => env('AUTH_PASSWORD_BROKER', 'use_accounts'),
    ],

    'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'use_accounts',
        ],
    ],


    'providers' => [
        'use_accounts' => [
            'driver' => 'eloquent',
            'model' => env('AUTH_MODEL', AppModelsUser::class),
        ],

       
    ],


    'passwords' => [
        'use_accounts' => [
            'provider' => 'use_accounts',
            'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
            'expire' => 60,
            'throttle' => 60,
        ],
    ],


    'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),

];

Controller

 public function signUp(Request $request)
    {
        if($request->isMethod('POST')){
            $user = new UseAccount;
        $user->name= $request->name;
        $user->email= $request->email;
        $user->password= $request->password;
        $user->save();

        $credential = [
            'email' => $request->email,
            'password' => $request->password,
        ];
        if(Auth::attempt([
            'email' => $request->email,
            'password' => $request->password,
        ])){
            return redirect('home');
        }
        }
        return view('auth.signUp');
    }

IlluminateAuthSessionGuard::__construct(): Argument #2 ($provider) must be of type IlluminateContractsAuthUserProvider, null given, called in W:Software Housetask_ManagementvendorlaravelframeworksrcIlluminateAuthAuthManager.php on line 127

how to make the system sort by name [closed]

how to make system sort by name using php programming language

I want to have a code that will make my system sort by name, the name should follow alphabetically I want my system to have a sort by name button I want my system to have a sort by name button, the names should be sorted based on the last name

A custom CodeSniffer check is not executed

I have a custom sniffer in ./src/StaticFunctionSniff.php file:

<?php

declare(strict_types=1);

namespace App;

use PHP_CodeSnifferFilesFile;
use PHP_CodeSnifferSniffsSniff;

class StaticFunctionSniff implements Sniff
{
    protected $warningMessage = 'Static method cannot be intercepted and its use is discouraged.';

    protected $warningCode = 'StaticFunction';

    public function register()
    {
        return [T_STATIC];
    }

    public function process(File $phpcsFile, $stackPtr)
    {
        $posOfFunction = $phpcsFile->findNext(T_FUNCTION, $stackPtr) + 1;
        $tokens = array_slice($phpcsFile->getTokens(), $stackPtr, $posOfFunction - $stackPtr);

        $allowedTypes = [T_STATIC => true, T_WHITESPACE => true, T_FUNCTION => true];
        foreach ($tokens as $token) {
            $code = $token['code'];
            if (!array_key_exists($code, $allowedTypes)) {
                break;
            }

            if ($code === T_FUNCTION) {
                $phpcsFile->addError($this->warningMessage, $posOfFunction, $this->warningCode);
            }
        }
    }
}

I linked my rules.xml file to it:

<?xml version="1.0"?>
<ruleset name="project">
    <rule ref="PSR12" />

    <config name="installed_paths" value="vendor/slevomat/coding-standard"/>

    ...
    <rule ref="src/StaticFunctionSniff.php" />

    <file>src</file>
    <file>tests</file>
</ruleset>

As far as I see CodeSniffer doesn’t use it at all. Why does CS skip it?