Skip to content

Instantly share code, notes, and snippets.

View tisuchi's full-sized avatar
🙂
Smile is Sadaqah (righteousness)

Thouhedul Islam tisuchi

🙂
Smile is Sadaqah (righteousness)
View GitHub Profile
@tisuchi
tisuchi / Controller.php
Last active September 12, 2019 10:57
Handling InputExcpetion on the package side.
<?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;
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