Skip to content

Instantly share code, notes, and snippets.

View ChadTaljaardt's full-sized avatar
🏠
Living the dream

Chad Taljaardt ChadTaljaardt

🏠
Living the dream
View GitHub Profile
This file has been truncated, but you can view the full file.
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 4961 3508" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;"><g id="Objects"><rect x="698.989" y="403.4" width="3610.7" height="2615.92" style="fill:#24446b;fill-rule:nonzero;"/><rect x="804.258" y="492.878" width="3415.96" height="2431.7" style="fill:#fafdfe;fill-rule:nonzero;"/><path d="M898.999,2814.05l0,-2236.95" style="fill:none;stroke-width:8.33px;stroke-dasharray:0,20.83;stroke:#0367a6;"/><path d="M925.316,566.566l3189.63,0" style="fill:none;stroke-width:8.33px;stroke-dasharray:0,20.83;stroke:#0367a6;"/><path d="M4125.47,592.883l0,2231.69" style="fill:none;stroke-width:8.33px;stroke-dasharray:0,20.83;stroke:#0367a6;"/><path d="M4104.42,2835.1l-3194.89,0" style="fill:none;stroke
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class ComposerServiceProvider extends ServiceProvider
{
/**
* Register bindings in the container.
@extends('frontend.index')
@section('content')
<!-- Content Block
============================================ -->
<section class="content-block default-bg">
<!-- Container -->
<div class="container cont-main no-pad-t">
<!-- Row -->
Route::group(['prefix' => 'products'], function() {
Route::get('/', 'FrontendController@getProductsPage')->name('frontend.products.view');
Route::get('{slug}', 'FrontendController@getProductDetails')->name('frontend.products.details');
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Home</title>
Route::group(['prefix' => 'products'], function() {
Route::get('/', 'FrontendController@getProductsPage')->name('frontend.products.view');
Route::get('{slug}', 'FrontendController@getProductDetails')->name('frontend.products.details');
});
public function getProductDetails($slug)
{
$products = Product::where('slug', $slug)->get();
return view('frontend.pages.details', ['products' => $products]);
}
Route::get('products', 'FrontendController@getProductsPage')->name('frontend.products.view');
Route::get('products/view/{$slug}', 'FrontendController@getProductDetails')->name('frontend.products.details');
public function getProductDetails($slug)
{
$products = Product::where('slug', $slug)->get();
return view('frontend.pages.details', ['products' => $products]);
}
@extends('frontend.index')
@section('content')
<!-- Content Block
============================================ -->
<section class="content-block default-bg">
<!-- Container -->
<div class="container cont-main no-pad-t">
<!-- Row -->