webdevmatics / ecom Goto Github PK
View Code? Open in Web Editor NEWEcommerce website with laravel Project Code. Tutorial on Youtube at... https://youtu.be/UvqhBoMXvPo
Ecommerce website with laravel Project Code. Tutorial on Youtube at... https://youtu.be/UvqhBoMXvPo
dfd
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.
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"
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!
Class 'App\Http\Controllers\Category' not found
`In 2016_12_10_071213_create_categories_table.php line 32:
Cannot declare class CreateCategoriesTable, because the name is already in use`
@extends('layouts.main')
@section('content')
<!-- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.