Facing this issue After I Upgraded project from Laravel 6 to Laravel 7. I actually could not upgrade laravel/framework package from 6 to 7 due to some other error of spatie/laravel-cors but than I removed spatie/laravel-cors and upgraded laravel/framework, after upgrading it wont install again. here is full e…
@yield does not show content on Laravel
template/layout.blade.php test23.blade.php TestController.php the variables Title and Test I’ve passed are both not showing, anyone knows how to fix? Answer @yield is used to “place” the content of a @section somewhere. You are passing the variables via the controller into the views. So you …
How can I create a profile for a user through a form in my application? I am using laravel 8
Hey guys I’m new to Laravel. I have one user in my database with name, username and password, now I want to create a profile for this user through a form in my application, where the user can submit a …
The best way to to handle large databases in python/flask projects
Recently i started to use flask and I liked pretty much. In the past I had a system in PHP with a lot of databases like marketing, HR, finance and so on. Each of this databases had their own tables like HR used to have employers, companies and so on. Each of this tables was a class in PHP, we
Show only user from the same company
I want ask how it’s possible when an user Type=Chef logs into the website, in the Dashboard it only shows the user from his company Foreign key (fk_FirmaID). I don’t how process it to only show a specific company. Here is my code that I have for the moment. When an user is logging in I’m sav…
Add the ean code (gtin) in the structured data of the product (Schema.org) in WooCommerce
I am using this snippet to display ean value for gtin in Woocommerce’s product schema: This works but I need to set “identifier_exists” markup to products that don’t have the custom field ean set. How can I modify my snippet to show the ean value in the markup if it exists, and add the…
insert data in a single row of a database, php and mysql
I need to insert some data in a single row of the database, the way I am doing it creates 2 rows and I only want this data to be entered in a single row. I can’t find a way to insert the data without creating 2 rows, My question is how can I insert this data into a single
Ajax request to php with empty POST data
I am new to javascript and I have problem with an ajax POST to php. I am trying tosend javascript variables to php via an ajax POST but it doesn’t work. The ajax post is sent but it sends empty POST. I got alert “Error occured ! 202” when trying to save data to bdd. Thanks in advance for hel…
Laravel: Redirect with post route
Been trying to find a way to call to pass a multidimensional array to a Post route with no success. The array looks like this: “order” => array:16 [ “id” => “…
MySQL – Join part of query to a new query?
I’ve got the following code which queries a table. Then it uses the result to make another query. That result is then used to make a third query. But how do I grab the userid field from the 2nd query in order to grab a name from a users table and join that to the result of the 3rd query?