Category "php"

How to I Add a view or Component that doesn't effects with master layouts

Guys I'm trying to making a page called slider and that page include both data passing and data getting methods. I created separate sections and i preformed tha

how to insert data into select2 search input after scan using qrcode

Example results that i want : I already did the qrcode scan and select2. It is working fine. The problem is I want that data "SBD2P3000002" to be searched in

I can't delete my image when it is liked because of the foreign key in mysql

There is the schema of my db : And I've got this error message when I try to delete a picture : SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot de

CSS file not imported in laravel blade view

I am trying to import a CSS file into one of my Laravel views but it's not being included for some reason. This is is what I have in my view file: @extends('lay

How to properly start Laravel 8 with Bootstrap & authentication

I face the following image every time I want to start a new Laravel 8 project with authentication routes set up using the laravel/ui package and Bootstrap scaff

How to properly start Laravel 8 with Bootstrap & authentication

I face the following image every time I want to start a new Laravel 8 project with authentication routes set up using the laravel/ui package and Bootstrap scaff

how to sort by a custom appended relation to model

i have a custom appended relation to model that i want to sort my parents according to that so this is the result of my api when i call it : { "i

phpexcel filter not working when export to excel

I want to export to excel but filter search doesn't work when I select range date and export the result is all data before filtering, public function download_e

image source not readable

I want to upload an image from external source but I get an error that image source not readable, I really do not know whether the URL for the image is incomple

I am getting error when try send sms using laravel-smpp

This is error:socket_close(): Argument #1 ($socket) must be of type Socket, null given, path:/vendor/php-smpp/php-smpp/sockettransport.class.php

With doctrine ODM, can I embed many subdocuments in a main document?

I try to save this JSON: { "vendorId": "vendor-fc162cdffd73", "company": { "companyId": "bcos1.company.1806cf97-a756-4fbf-9081-fc162cdffd73", "compa

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

I use the last version of EasyAdmin and my add and remove functions are ignored when I submit the form: Ambiance entity: /** * @ORM\OneToMany(targetEntity="Veh

Woocommerce product qty shortcode not working on mobile browsers

I've got an with a site, we've got this shortcode on it: if( !function_exists('show_specific_product_quantity') ) { function show_specific_product_quantity( $a

Filter WooCommerce related products by Polylang language

I'm using polylang plugin to having multi-languages website. Using WooCommerce with polylang demands duplicating each product for each language, so assuming I h

target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable

i'm have a router register but i found error Target [Laravel\Fortify\Contracts\RegisterViewResponse] is not instantiable.

How can I make good efficent AJAX live forms with just jQuery and

I've been trying to make AJAX forms but made no luck, I tried using iframes but I frames aren't that good. That's all I've tried, and that's all I know. I have

Set @JoinColumn name in doctrine

EDIT: In the end as @Jakumi commented it was just a cache issue, after clearing it everything worked as expected. There are only two hard things in Computer Sc

DateTime being persisted to one DB column but not the other in Symfony 4.4 app

I have a baffling issues where I have a DateTime object which seems to be able to be persisted and flushed to one column, but not the other. I have checked the

Closure not setting variables as expected

For some reason, $uuid & $tags are not being set correctly. public function handle(Request $request, Closure $next) { $uuid = null; $tag

preg_replace vs ereg_replace vs str_replace On This Particular Case

Using PHP, I want to generate custom MySQL dump file (due to cannot use exec and a few other reasons). I found these 2 similar solutions: https://www.kvcodes.co