Giter Site home page Giter Site logo

drehimself / laravel-ecommerce-example Goto Github PK

View Code? Open in Web Editor NEW
990.0 75.0 582.0 14.77 MB

Code for YouTube series on building a Laravel E-Commerce application.

Home Page: https://www.youtube.com/watch?v=o5PWIuDTgxg&list=PLEhEHUEU3x5oPTli631ZX9cxl6cU_sDaR

PHP 90.93% Vue 0.32% HTML 8.75%
laravel ecommerce php laravel-framework laravel-voyager laravel-stripe

laravel-ecommerce-example's Introduction

Laravel Ecommerce Example

Laravel Ecommerce Example

Code for YouTube video series: https://www.youtube.com/watch?v=o5PWIuDTgxg&list=PLEhEHUEU3x5oPTli631ZX9cxl6cU_sDaR

Website Demo: https://laravelecommerceexample.ca. The demo has limited permissions. Install locally for full access.

Installation

  1. Clone the repo and cd into it
  2. composer install
  3. Rename or copy .env.example file to .env
  4. php artisan key:generate
  5. Set your database credentials in your .env file
  6. Set your Stripe credentials in your .env file. Specifically STRIPE_KEY and STRIPE_SECRET
  7. Set your Algolia credentials in your .env file. Specifically ALGOLIA_APP_ID and ALGOLIA_SECRET. See this episode.
  8. Set your Braintree credentials in your .env file if you want to use PayPal. Specifically BT_MERCHANT_ID, BT_PUBLIC_KEY, BT_PRIVATE_KEY. See this episode. If you don't, it should still work but won't show the paypal payment at checkout.
  9. Set your APP_URL in your .env file. This is needed for Voyager to correctly resolve asset URLs.
  10. Set ADMIN_PASSWORD in your .env file if you want to specify an admin password. If not, the default password is 'password'
  11. php artisan ecommerce:install. This will migrate the database and run any seeders necessary. See this episode.
  12. npm install
  13. npm run dev
  14. php artisan serve or use Laravel Valet or Laravel Homestead
  15. Visit localhost:8000 in your browser
  16. Visit /admin if you want to access the Voyager admin backend. Admin User/Password: [email protected]/password. Admin Web User/Password: [email protected]/password

Shopping Cart Package

I originally used the Crinsane/LaravelShoppingcart package but it is slow to update to the latest versions of Laravel. I now use hardevine/LaravelShoppingcart which is a forked version that updates quicker.

Windows Users - money_format() issue

The money_format function does not work in Windows. Take a look at this thread. As an alternative, just use the number_format function instead.

  1. In app/helpers.php replace money_format line with return '$'.number_format($price / 100, 2);
  2. In app/Product.php replace money_format line with return '$'.number_format($this->price / 100, 2);
  3. In config/cart.php set the thousand_seperator to an empty string or you might get a 'non well formed numeric value encountered' error. It conflicts with number_format.

Starting from a particular point

If you would like to follow along from a particular point, follow these instructions. I'm going to be starting from my starting point in the first video of the series. You can choose any point by replacing the hash with any particular commit.

  1. Clone the repo and cd into it
  2. git checkout f4f651a8a35ebb2ff38ba15771fd65c93051f942
  3. Follow the rest of the steps above. Instead of php artisan ecommerce:install, migrate and seed the normal way with php artisan migrate --seed

laravel-ecommerce-example's People

Contributors

aabdyli avatar abhinavdobhal avatar dependabot[bot] avatar drehimself 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  avatar  avatar

Watchers

 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

laravel-ecommerce-example's Issues

im getting this error

Property [slug] does not exist on this collection instance. i can post code if anyone else faced this problem and got a way to solve it.

Checkout order error

when i press complete order show error
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "

$this->throwException(new Swift_TransportException('Expected response code '.implode('/', $wanted).' but got code "'.$code.'", with message "'.$response.'"', $code));

error

please help me

seeding

application not seeding into database seeds only two tables users and migrations

data_rows, data_types

Hi

In file EcommerceInstall , for DataRowsTableSeederCustom.php, how to popupdate that file ?
Was it all manual entry?

Regards
Adrian

i remove the "Searchable" trait (Laravel Scout) in App\Product model. and I try to put algoliaID it not work two way. you check your code please. Thank you

`<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Nicolaslopezj\Searchable\SearchableTrait;z

class Product extends Model
{
use SearchableTrait;

/**
 * Searchable rules.
 *
 * @var array
 */
protected $searchable = [
    /**
     * Columns and their priority in search results.
     * Columns with higher values are more important.
     * Columns with equal values have equal importance.
     *
     * @var array
     */
    'columns' => [
        'products.name' => 10,
        'products.details' => 5,
        'products.description' => 2,
    ],
];

public function categories()
{
    return $this->belongsToMany('App\Category');
}

public function presentPrice()
{
    return money_format('$%i', $this->price / 100);
}

public function scopeMightAlsoLike($query)
{
    return $query->inRandomOrder()->take(4);
}

/**
 * Get the indexable data array for the model.
 *
 * @return array
 */
public function toSearchableArray()
{
    $array = $this->toArray();

    $extraFields = [
        'categories' => $this->categories->pluck('name')->toArray(),
    ];

    return array_merge($array, $extraFields);
}

}
`

Change the language

I need to change the language to pt_br. How do I do that?

I have changed in 'locale' => 'en' to 'locale' => 'pt_br' and 'fallback_locale' => 'en' to 'fallback_locale' => 'pt_br' but not all translated

AlgoliaSearch requires an applicationID

screenshot from 2018-04-05 20-48-39

im fresh install your application from github clone
php artisan ecommerce:install error algoliasearch requires applicationID
and im try rollback . and tri install manual migrate sucsess and db:seed eror algoliasearch requires applicationID
help pls

Admin / Voyager - Json error under database/products/bread/edit

Under admin page, if you edit the products' bread, you will see an error in console which is Uncaught SyntaxError: Unexpected token d in JSON at position 41.
I believe bc of that, all "Optional Details" json area after the PRICE are "broken".
Thanks!

Algolia credentials incorrect

Algolia credentials incorrect. Your products table is NOT seeded correctly. If y
ou are not using Algolia, remove Searchable trait from App\Product
Algolia credentials incorrect. Check your .env file.

Errors installing

I am getting 2 issues:

  1. Algolia credentials incorrect. Your products table is NOT seeded correctly. If you are not using Algolia, remove Laravel\Scout\Searchable from App\Product

In my .env I have the following:

ALGOLIA_APP_ID=XXXXXXXXX
ALGOLIA_SECRET=XXXXXXX

  1. Table 'laravel-ecommerce-example.data_types' doesn't exist (SQL

php artisan ecommerce:install

This will delete ALL your current data and install the default dummy data. Are you sure? (yes/no) [no]:

yes

Images successfully copied to storage folder.
Dropped all tables successfully.
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table

Algolia credentials incorrect. Your products table is NOT seeded correctly. If you are not using Algolia, remove Laravel\Scout\Searchable from App\Product

In Connection.php line 664:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-ecommerce-example.data_types' doesn't exist (SQL
: select * from data_types where (slug = posts) limit 1)

In PDOConnection.php line 63:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-ecommerce-example.data_types' doesn't exist

In PDOConnection.php line 61:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-ecommerce-example.data_types' doesn't exist

proceed to checkout

when i pressed the button proceed to checkout i got error Braintree \ Exception \ Configuration
Braintree\Configuration::merchantId needs to be set (or accessToken needs to be passed to Braintree\Gateway).

Why i can change my role?

Hi, i just visit the demo page and login as demo admin but i was clicked profile link and open profile edit page there i saw this โฌ‡๏ธ
roles

there i can changed my role to super admin
i think its voyager issue .

SQLTSTATE[42S02]

guys i'm having this error please help :(
In Connection.php line 664:

SQLSTATE[42S02]: Base table or view not found: 1146 La table 'kakumei.data_types' n'existe pas(doesn't exist) (SQL:
select * from data_types where (slug = posts) limit 1)

In PDOConnection.php line 82:

SQLSTATE[42S02]: Base table or view not found: 1146 La table 'kakumei.data_types' n'existe pas

In PDOConnection.php line 80:

SQLSTATE[42S02]: Base table or view not found: 1146 La table 'kakumei.data_types' n'existe pas

although i have followed the installation correctly

Call to a member function relationLoaded() on null

C:\laragon\www\ecommerce\vendor\tcg\voyager\src\Traits\VoyagerUser.php

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Call to a member function relationLoaded() on null

C:\laragon\www\ecommerce\vendor\tcg\voyager\src\Traits\VoyagerUser.php

    return true;
}

private function loadRolesRelations()
{
    if (!$this->relationLoaded('role')) {
        $this->load('role');
    }

    if (!$this->relationLoaded('roles')) {
        $this->load('roles');
    }
}

private function loadPermissionsRelations()
{
    $this->loadRolesRelations();

    if (!$this->role->relationLoaded('permissions')) {
        $this->role->load('permissions');
        $this->load('roles.permissions');
    }
}

}

Arguments
"Call to a member function relationLoaded() on null"

Shipping/ Delivery charge

thanks for the awesome series.

I was checking the project and tried to find a solution to add the Shipping/ Delivery charge at the checkout page. did you ended the series or have plan to cover that. Can you please guide me to find a solution to accommodate this cost with the cart.

cart

It's actually a beautiful project with all the functionalities..but i am stuck at cart..when i logout of the account i want the cart to become empty and when i login with different account the cart should be new for the new user to add items..how to do that? please help

Percent Off Coupons are not recalculated after Cart is updated

Steps to reproduce

  1. Add any product to cart
  2. Add a percent off coupon
  3. Add another product to cart (or update cart quantity)
  4. The discount is incorrect. It is only based on the first item in the cart.

Expected result

The discount needs to be recalculated based on the new subtotal. Should work for adding items, updating items (updating quantity), and deleting items from the cart.

SQLSTATE[42000]

Hello guys i'm having this error please help :(

Migration table created successfully.

In Connection.php line 664:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table users
add unique users_email_unique(email))

In PDOStatement.php line 143:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

In PDOStatement.php line 141:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

Stripe problem

I got this problem submitting with Stripe: "No such token: tok_1EcyCKI1zyLou8bBhMuphbJE". Any help please?

Paypal Payment ?

Hi
I following your YouTube series on building a Laravel E-Commerce application.
Would be great when you support paypal

Edit saved orders

Do you have any plan to extend the admin backend to edit the stored orders before shipping. In some cases there might be necessary to edit the submitted order.

Can you please give an idea how can i implement the edit order feature?

balaji

sorry, iam new to laravel ,here i am facing this kind of issue,please tell what i have to do for this error?

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Laptop' for key 'category_name_unique'

In PDOStatement.php line 141:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Laptop' for key 'category_name_unique'

Algolia Search error persistent

Hello, I've had issues with agolia search, I've removed the Searchable traits but trying to install it keeps telling me Algolia credentials incorrect. Your products table is NOT seeded correctly. If you are not using Algolia, remove Searchable trait from App\Product. I have performed composer dump-autoload, cleared the cache and all but nothing seems to work.

php artisan migrate error

Migrating: 2014_10_12_000000_create_users_table

In Connection.php line 664:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes (SQ
L: alter table users add unique users_email_unique(email))

In PDOStatement.php line 119:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

In PDOStatement.php line 117:

SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes

php artisan key generate

php artisan key:generate

This Error
PHP Warning: require(C:\xampp\htdocs\laravel-ecommerce-example-master/vendor/au
toload.php): failed to open stream: No such file or directory in C:\xampp\htdocs
\laravel-ecommerce-example-master\artisan on line 18

Warning: require(C:\xampp\htdocs\laravel-ecommerce-example-master/vendor/autoloa
d.php): failed to open stream: No such file or directory in C:\xampp\htdocs\lara
vel-ecommerce-example-master\artisan on line 18
PHP Fatal error: require(): Failed opening required 'C:\xampp\htdocs\laravel-ec
ommerce-example-master/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') i
n C:\xampp\htdocs\laravel-ecommerce-example-master\artisan on line 18

Fatal error: require(): Failed opening required 'C:\xampp\htdocs\laravel-ecommer
ce-example-master/vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:
xampp\htdocs\laravel-ecommerce-example-master\artisan on line 18

Issue in Timestamp

Hi all,

We are running this example on both Window and Linux machine.

But get these error message:

`Exception thrown with message "DateTime::__construct(): Failed to parse time string (1) at position 0 (1): Unexpected character"

Stacktrace:
#61 Exception in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/nesbot/carbon/src/Carbon/Carbon.php:439
#60 DateTime:__construct in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/nesbot/carbon/src/Carbon/Carbon.php:439
#59 Carbon\Carbon:__construct in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/nesbot/carbon/src/Carbon/Carbon.php:476
#58 Carbon\Carbon:parse in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/tcg/voyager/src/Http/Controllers/ContentTypes/Timestamp.php:21
#57 TCG\Voyager\Http\Controllers\ContentTypes\Timestamp:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/tcg/voyager/src/Http/Controllers/Controller.php:204
#56 TCG\Voyager\Http\Controllers\Controller:getContentBasedOnType in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/tcg/voyager/src/Http/Controllers/Controller.php:67
#55 TCG\Voyager\Http\Controllers\Controller:insertUpdateData in /home/pi/Desktop/t/laravel-ecommerce-example/app/Http/Controllers/Voyager/ProductsController.php:290
#54 App\Http\Controllers\Voyager\ProductsController:store in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
#53 call_user_func_array in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
#52 Illuminate\Routing\Controller:callAction in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45
#51 Illuminate\Routing\ControllerDispatcher:dispatch in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212
#50 Illuminate\Routing\Route:runController in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169
#49 Illuminate\Routing\Route:run in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659
#48 Illuminate\Routing\Router:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#47 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/tcg/voyager/src/Http/Middleware/VoyagerAdminMiddleware.php:27
#46 TCG\Voyager\Http\Middleware\VoyagerAdminMiddleware:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#45 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#44 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41
#43 Illuminate\Routing\Middleware\SubstituteBindings:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#42 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#41 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:67
#40 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#39 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#38 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49
#37 Illuminate\View\Middleware\ShareErrorsFromSession:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#36 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#35 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63
#34 Illuminate\Session\Middleware\StartSession:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#33 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#32 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37
#31 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#30 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#29 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:59
#28 Illuminate\Cookie\Middleware\EncryptCookies:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#27 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#26 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:102
#25 Illuminate\Pipeline\Pipeline:then in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Router.php:661
#24 Illuminate\Routing\Router:runRouteWithinStack in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636
#23 Illuminate\Routing\Router:runRoute in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Router.php:602
#22 Illuminate\Routing\Router:dispatchToRoute in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Router.php:591
#21 Illuminate\Routing\Router:dispatch in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176
#20 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30
#19 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/fideloper/proxy/src/TrustProxies.php:57
#18 Fideloper\Proxy\TrustProxies:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#17 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#16 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#15 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#14 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#13 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:30
#12 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#11 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#10 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27
#9 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#8 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#7 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:46
#6 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:149
#5 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in /home/pi/Desktop/t/laravel-ecommerce-example/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53
#4 Illuminate\Routing\Pipeline:Illumin`

I think it is in the version of the Carbon api we are using, right ?

Thank you very much !!

image doesn't show

i have followed all the step but after upload a product the image doesn't show, i am running the project at localhost:8080, i have changed the folder point in my data to public/storage/products/dummy/laptop-1.jpg and /storage/products/dummy/laptop-1.jpg still show image crush logo,what i am missing?

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.