This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use App\Exceptions\InputException; | |
use Bugsnag\BugsnagLaravel\Facades\Bugsnag; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adding Product in Admin | |
================================== | |
SELECT | |
product.*, product_variation.*, product_option.* | |
FROM product | |
LEFT JOIN product_variation ON product_variation.product_id = product.product_id | |
LEFT JOIN product_option ON product_option.product_id = product.product_id | |
LEFT JOIN order_product ON order_product.product_id = product.product_id | |
LEFT JOIN customer_order ON customer_order.order_id = order_product.order_id |