Advertisement
Guest User

\Models\Image as ImageModel; use App\Models\Spesifikasi; use

a guest
Feb 22nd, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. \Models\Image as ImageModel;
  2. use App\Models\Spesifikasi;
  3. use Intervention\Image\Facades\Image as Image;
  4. use DB;
  5.  
  6. class ProdukController extends Controller
  7. {
  8. public function index()
  9. {
  10. $produks = Product::with(['categories'])->orderBy('created_at','asc')->get();
  11. $tipes = Tipe::all();
  12. $sizes = Size::all();
  13. $warnas = Color::all();
  14. $spesification = Spesifikasi::all();
  15. $categories = Category::all();
  16. return View('admin.produk', ['produks' => $produks,
  17. 'tipes' => $tipes,
  18. 'categories' => $categories,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement