Git Product home page Git Product logo

ecom's Introduction

How to use

Clone repo

git clone https://github.com/webdevmatics/ecom.git

Install the composer dependencies

composer install

Save .env.example as .env and put your database credentials

Set application key

php artisan key:generate        

And Migrate with

php artisan migrate

Install node dependencies

npm install

Run watcher

npm run watch

ecom's People

Contributors

thesubhendu avatar webdevmatics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ecom's Issues

Can not find css and js files

php artisan serve logs show that "there is no such file or directory" for all files in /dist folder, but they are there. I work on Windows so I haven't to set chmoods for this directory I think. Page is displaying but without css and js.
What did I do wrong? Please advise.

"Undefined variable: shirts (View: C:\laragon\www\Lb\resources\views\front\home.blade.php)"

@extends('layouts.main')

@section('content')












Hey! Welcome to MC- Mykey's Store





Check out My Shirts






MyKey’s Latest Shirts


<!-- Latest SHirts -->
<div class="row">
    @forelse($shirts->chunk(4) as $chunk)
        @foreach($chunk as $shirt)
        <div class="small-3 medium-3 large-3 columns">

            <product :shirt="{{$shirt}}"
                     shirtlink="{{route('shirt',$shirt->id)}}"
                     shirtimagepath='{{asset("storage/$shirt->image")}}'
            >
            </product>

        </div>
        @endforeach
    @empty
        <h3>No shirts</h3>
    @endforelse
</div>

<!-- Footer -->
<br>

@endsection

Working with routes to add-item gives error.

I cannot make it work, it seems that working with routes gives me error.
it says CartItem.php

InvalidArgumentException
Please supply a valid name.

it seems its only passing ID and is not enough but in route it says only Id. consequently it has to be ok

Route::get('/cart/add-item/{id}', 'CartController@addItem')->name('cart.addItem');

my view>

<a href="{{route('cart.addItem',$product->id, $product->productName, number_format($product->price, 2, '.', ','))}}" class="btn btn-inverse btn-lg" type="submit">ADD TO CART</a>

thank you!

"Undefined offset: 1"

C:\laragon\www\Lb\vendor\laravel\framework\src\Illuminate\View\Compilers\Concerns\CompilesLoops.php
*
* @param string $expression
* @return string
*/
protected function compileFor($expression)
{
return "";
}

/**
 * Compile the for-each statements into valid PHP.
 *
 * @param  string  $expression
 * @return string
 */
protected function compileForeach($expression)
{
    preg_match('/\( *(.*) +as *(.*)\)$/is', $expression, $matches);

    $iteratee = trim($matches[1]);

    $iteration = trim($matches[2]);

    $initLoop = "\$__currentLoopData = {$iteratee}; \$__env->addLoop(\$__currentLoopData);";

    $iterateLoop = '$__env->incrementLoopIndices(); $loop = $__env->getLastLoop();';

    return "<?php {$initLoop} foreach(\$__currentLoopData as {$iteration}): {$iterateLoop} ?>";
}

/**
 * Compile the break statements into valid PHP.
 *
 * @param  string  $expression
 * @return string
 */
protected function compileBreak($expression)
{
    if ($expression) {
        preg_match('/\(\s*(-?\d+)\s*\)$/', $expression, $matches);

Arguments
"Undefined offset: 1"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.