Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \Models\Image as ImageModel;
- use App\Models\Spesifikasi;
- use Intervention\Image\Facades\Image as Image;
- use DB;
- class ProdukController extends Controller
- {
- public function index()
- {
- $produks = Product::with(['categories'])->orderBy('created_at','asc')->get();
- $tipes = Tipe::all();
- $sizes = Size::all();
- $warnas = Color::all();
- $spesification = Spesifikasi::all();
- $categories = Category::all();
- return View('admin.produk', ['produks' => $produks,
- 'tipes' => $tipes,
- 'categories' => $categories,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement