WebbieWorks

WebbieWorks

Member Since 2 Years Ago

Experience Points 750
Experience Level 1

4,250 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

19 Dec
6 months ago

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

@REALRANDYALLEN - I was able to get it working by re-installing the shopping cart and doing a little bit of editing. (not sure what I did different) but it now works.

I appreciate all your time and help on this. Thank You very much.

18 Dec
6 months ago

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

@REALRANDYALLEN - I am using the https://github.com/Crinsane/LaravelShoppingcart trying to follow this tutorial.

https://www.youtube.com/watch?v=Jzi6aLKVw-A&index=3&list=PLEhEHUEU3x5oPTli631ZX9cxl6cU_sDaR

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

@REALRANDYALLEN - Now I am getting this again

"Missing required parameters for [Route: quote.destroy] [URI: quote/{rowId}]. (View: /resources/views/quote.blade.php)"

I may have to skip this part and finish the rest and pay someone to get this for me.

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

So after messing with the code, it is now deleting everything in the cart and not just what I select.

What I have now is

web.php

Route::delete('/quote/{id}', '[email protected]')->name('quote.destroy');

CartController

public function destroy($id)
    {
        Cart::destroy($id);

        return back()->with('success_message', 'Item has been removed.');
    }

And form to delete

<form action="{{ route('quote.destroy',$item->id) }}" method="POST">
      {{ csrf_field() }}
      {{ method_field('DELETE') }}

      <button type="submit" class="btn btn-danger" style="float:right; margin-top:15px">
            <span class="glyphicon glyphicon-remove"></span> Remove
      </button>
 </form>
17 Dec
6 months ago

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

The page refreshed with success message but the item is still showing.

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

That returned

CartItem {#416 ▼
  +rowId: null
  +id: "2"
  +name: "WEXXAR Hot Melt Case Erector"
  -associatedModel: "App\Product"
  +"taxRate": 21
}

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

Gotcha, Here is the the products in the cart view with the delete button

@foreach (Cart::content() as $item)
                        <tbody>
                            <tr>
                                
                                <td class="col-sm-11 col-md-11">
                                <div class="media">
                                     <img class="media-object" src="{{ asset('images/products/'.$item->model->slug.'.jpg') }}" style="width: 72px; height: 72px;"> 
                                    <div class="media-body" >
                                        <h6 class="media-heading" style="padding-left:15px; margin-top:25px" >{{ $item->model->name }}</h6>
                                    </div>
                                </div></td>

                                <td class="col-sm-1 col-md-1">

                                    <form action="{{ route('quote.destroy', $item->rowId) }}" method="POST">
                                        {{ csrf_field() }}
                                        {{ method_field('DELETE') }}

                                        <button type="submit" class="btn btn-danger" style="float:right; margin-top:15px">
                                            <span class="glyphicon glyphicon-remove"></span> Remove
                                        </button>
                                    </form>

                                </td>
                            </tr>
                        @endforeach```

And this is my destroy in the CartController

public function destroy($id) { Cart::remove($id);

    return view('quote')->with('success_message', 'deleted from cart successfully');
}

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

I honestly have no clue, I am following a tutorial and that is what they have in there, so I am not sure how to even trouble shoot it.

WebbieWorks left a reply on "syntax Error, Unexpected 'return' (T_RETURN)"

@REALRANDYALLEN - Leave it to be the smallest thing to get me stump. So I appreciate that.

Now I have ran into this issue.

"Missing required parameters for [Route: quote.destroy] [URI: quote/{product}]. (View: /resources/views/quote.blade.php)"

WebbieWorks started a new conversation "syntax Error, Unexpected 'return' (T_RETURN)"

I am trying to use a destroy and then redirect back to the cart with a success method but getting the following error.

"syntax error, unexpected 'return' (T_RETURN)"

My CartController Code

public function destroy($id)
    {
        Cart::remove($id)

        return view('quote')->with('success_message', 'Item successfully deleted');
    }

web.php

Route::delete('/quote/{product}', '[email protected]')->name('quote.destroy');

And the Remove Button

<form action="{{ route('quote.destroy',$item->rowId) }}" method="POST">
       {{ csrf_field() }}
       {{ method_field('DELETE') }}

       <button type="submit" class="btn btn-danger" style="float:right; margin-top:15px">
         <span class="glyphicon glyphicon-remove"></span> Remove
        </button>
</form>

I do not understand what I could be missing? I have searched high and low to resolve this. I am watching a tutorial on developing a shopping cart and followed the instructions, but I cannot get past this.

Any help would be greatly appreciated.

WebbieWorks left a reply on Syntax Error, Unexpected 'class' (T_CLASS) In Laravel Cart

I was able to fix this by pretty much renaming everything from Quote to Cart. Thank you for everyones time and help.

16 Dec
6 months ago

WebbieWorks left a reply on Syntax Error, Unexpected 'class' (T_CLASS) In Laravel Cart

Would that not be this? (this is from product.php)

<form action="{{ route('quote.store') }}" method="POST">
                {{ csrf_field() }}
                <input type="hidden" name="name" value="{{ $product->name }}">
                <button type="submit" class="btn btn-lg valBtn text-uppercase">Request Quote</button>
            </form>

WebbieWorks left a reply on Syntax Error, Unexpected 'class' (T_CLASS) In Laravel Cart

I added that, but now it is throwing another error

Method Illuminate\Database\Query\Builder::add does not exist.

public function store(Request $request)
    {
        Quote::add($request->name)
          ->associate('App\Product');

        return redirect()->route('quote.index')->with('success_message', 'Item was add to quote!');
    }

WebbieWorks left a reply on Syntax Error, Unexpected 'class' (T_CLASS) In Laravel Cart

@LOSTDREAMER_NL - I was able to fix that error, it was do to a weird character at the end. Now I am running into

Class 'App\Http\Controllers\Quote' not found.

WebbieWorks started a new conversation Syntax Error, Unexpected 'class' (T_CLASS) In Laravel Cart

I am trying to install a this shopping cart using Laravel but I am getting an error and I cannot figure it out. I have triple checked all my routes and they all seem to be what they should be. I have been searching everywhere for this, but what I can find, it actually shows where the error is, like "unexpected error in (error location).

syntax error, unexpected 'class' (T_CLASS)

This is my QuoteController (some code removed for space)

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Product;
use Gloudemans\Shoppingcart\Facades\Cart;


class QuoteController extends Controller
{
public function index()
    {
        return view('quote');
    }
public function store(Request $request)
    {
        Quote::add($request->$id, $request->name)
          ->associate('App\Product');

        return redirect()->route('quote.index')->with('success_message', 'Item was add to quote!');
    }
}

My routes in web.php look correct.

Route::get('/quote.php', '[email protected]')->name('quote.index');
Route::post('/quote.php', '[email protected]')->name('quote.store');

Also, here is the code for the button.

<form action="{{ route('quote.store') }}" method="POST">
                {{ csrf_field() }}
                <input type="hidden" name="id" value="{{ $product->id }}">
                <input type="hidden" name="name" value="{{ $product->name }}">
                <button type="submit" class="btn btn-lg valBtn text-uppercase">Request Quote</button>
            </form>

Both the error and the word quote (the return view('quote'); ) are in light green so I believe that is the issue, but I cannot find what could be causing the error. I am just now learning laravel with the help of this video.

Laravel Video

Any help on this would be greatly appreciate.

26 Sep
9 months ago

WebbieWorks left a reply on Multiple Images Not Storing Into Database

I understand, but it still is not storing the 2 other images into the database, just the main one. I need to upload a main image, then upload multiple images for the gallery. The main image uploads and gets stored, but the gallery images do not.

<div class="control-group">
     <label class="control-label">Main Image :</label>
        <div class="controls">
                <input type="file" name="image" id="image"/>
        </div>
</div>
<div class="control-group">
    <label class="control-label">Gallery Images :</label>
         <div class="controls">
                <input type="file" name="images[]" id="images" multiple />
         </div>
</div>

WebbieWorks left a reply on Multiple Images Not Storing Into Database

I appreciate your response. Would the code need to be like this?

if($request->hasFile('image')){
            $image_tmp = Input::file('image');
if($request->hasFile('images[]')){
                $image_tmp = Input::file('images[]');
                if($image_tmp->isValid()){
                    $extension = $image_tmp->getClientOriginalExtension();
                    $filename = rand(111,9999).'.'.$extension;
                    $large_image_path = 'images/backend_img/products/large/'.$filename;
                    $medium_image_path = 'images/backend_img/products/medium/'.$filename;
                    $small_image_path = 'images/backend_img/products/small/'.$filename;
                    //Resize Images
                    Image::make($image_tmp)->save($large_image_path);
                    Image::make($image_tmp)->resize(600,600)->save($medium_image_path);
                    Image::make($image_tmp)->resize(300,300)->save($small_image_path);
                    $product->image = $filename;
                }
            }

WebbieWorks started a new conversation Multiple Images Not Storing Into Database

I am fairly new to laravel and I am stuck on an issue with multiple images getting stored. The print_r($data) shows that the info is there, but they are not being stored. The 1st image uploads without issue, but not the others.

[image] => Illuminate\Http\UploadedFile Object
        (
            [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 
            [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Image-1.jpg
            [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg
            [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0
            [hashName:protected] => 
            [pathName:SplFileInfo:private] => /Applications/MAMP/tmp/php/phpMwY6SH
            [fileName:SplFileInfo:private] => phpMwY6SH
        )

    [images] => Array
        (
            [0] => Illuminate\Http\UploadedFile Object
                (
                    [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 
                    [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Image-2.jpg
                    [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg
                    [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0
                    [hashName:protected] => 
                    [pathName:SplFileInfo:private] => /Applications/MAMP/tmp/php/phpWbVdIX
                    [fileName:SplFileInfo:private] => phpWbVdIX
                )

            [1] => Illuminate\Http\UploadedFile Object
                (
                    [test:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 
                    [originalName:Symfony\Component\HttpFoundation\File\UploadedFile:private] => Image-3.jpg
                    [mimeType:Symfony\Component\HttpFoundation\File\UploadedFile:private] => image/jpeg
                    [error:Symfony\Component\HttpFoundation\File\UploadedFile:private] => 0
                    [hashName:protected] => 
                    [pathName:SplFileInfo:private] => /Applications/MAMP/tmp/php/php46m8RX
                    [fileName:SplFileInfo:private] => php46m8RX
                )

        )

But It is not being sent to db

My controller looks like it is correct based off a tutorial I followed.

if($request->hasFile('image')){
                $image_tmp = Input::file('image');
                if($image_tmp->isValid()){
                    $extension = $image_tmp->getClientOriginalExtension();
                    $filename = rand(111,9999).'.'.$extension;
                    $large_image_path = 'images/backend_img/products/large/'.$filename;
                    $medium_image_path = 'images/backend_img/products/medium/'.$filename;
                    $small_image_path = 'images/backend_img/products/small/'.$filename;
                    //Resize Images
                    Image::make($image_tmp)->save($large_image_path);
                    Image::make($image_tmp)->resize(600,600)->save($medium_image_path);
                    Image::make($image_tmp)->resize(300,300)->save($small_image_path);
                    $product->image = $filename;
                }
            }
            if($request->hasFile('images[]')){
                $image_tmp = Input::file('images[]');
                if($image_tmp->isValid()){
                    $extension = $image_tmp->getClientOriginalExtension();
                    $filename = rand(111,9999).'.'.$extension;
                    $large_image_path = 'images/backend_img/products/large/'.$filename;
                    $medium_image_path = 'images/backend_img/products/medium/'.$filename;
                    $small_image_path = 'images/backend_img/products/small/'.$filename;
                    //Resize Images
                    Image::make($image_tmp)->save($large_image_path);
                    Image::make($image_tmp)->resize(600,600)->save($medium_image_path);
                    Image::make($image_tmp)->resize(300,300)->save($small_image_path);
                    $product->images = $filename;
                }
            }

as well as my input field

<div class="control-group">
              <label class="control-label">Gallery Images :</label>
              <div class="controls">
                <input type="file" name="images[]" id="images" multiple />
              </div>
            </div>

Any help would be appreciated it on this issue.

19 Sep
9 months ago

WebbieWorks started a new conversation Auto Generating Field Info Based Off Customer Data

I have a form in my backend with

Customer Name Email Telephone

What I am trying to accomplish is that if I type in a customers name and click on the next form box, the customers information (email & telephone) will get pulled from the database and automatically be set.

Is this possible and if so, is there a tutorial on how to do it?

16 Mar
2 years ago

WebbieWorks left a reply on Trying To Duplicate A Controller

Figured it out. I needed to add

use App\Contact;

to my AdminController.php

Still learning laravel and it sure is fun.

WebbieWorks left a reply on Trying To Duplicate A Controller

Controller.php


namespace Illuminate\Routing;

use Closure;
use BadMethodCallException;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

abstract class Controller
{
    /**
     * The middleware registered on the controller.
     *
     * @var array
     */
    protected $middleware = [];

    /**
     * The "before" filters registered on the controller.
     *
     * @var array
     */
    protected $beforeFilters = [];

    /**
     * The "after" filters registered on the controller.
     *
     * @var array
     */
    protected $afterFilters = [];

    /**
     * The router instance.
     *
     * @var \Illuminate\Routing\Router
     */
    protected static $router;

    /**
     * Register middleware on the controller.
     *
     * @param  string  $middleware
     * @param  array   $options
     * @return void
     */
    public function middleware($middleware, array $options = [])
    {
        $this->middleware[$middleware] = $options;
    }

    /**
     * Register a "before" filter on the controller.
     *
     * @param  \Closure|string  $filter
     * @param  array  $options
     * @return void
     *
     * @deprecated since version 5.1.
     */
    public function beforeFilter($filter, array $options = [])
    {
        $this->beforeFilters[] = $this->parseFilter($filter, $options);
    }

    /**
     * Register an "after" filter on the controller.
     *
     * @param  \Closure|string  $filter
     * @param  array  $options
     * @return void
     *
     * @deprecated since version 5.1.
     */
    public function afterFilter($filter, array $options = [])
    {
        $this->afterFilters[] = $this->parseFilter($filter, $options);
    }

    /**
     * Parse the given filter and options.
     *
     * @param  \Closure|string  $filter
     * @param  array  $options
     * @return array
     */
    protected function parseFilter($filter, array $options)
    {
        $parameters = [];

        $original = $filter;

        if ($filter instanceof Closure) {
            $filter = $this->registerClosureFilter($filter);
        } elseif ($this->isInstanceFilter($filter)) {
            $filter = $this->registerInstanceFilter($filter);
        } else {
            list($filter, $parameters) = Route::parseFilter($filter);
        }

        return compact('original', 'filter', 'parameters', 'options');
    }

    /**
     * Register an anonymous controller filter Closure.
     *
     * @param  \Closure  $filter
     * @return string
     */
    protected function registerClosureFilter(Closure $filter)
    {
        $this->getRouter()->filter($name = spl_object_hash($filter), $filter);

        return $name;
    }

    /**
     * Register a controller instance method as a filter.
     *
     * @param  string  $filter
     * @return string
     */
    protected function registerInstanceFilter($filter)
    {
        $this->getRouter()->filter($filter, [$this, substr($filter, 1)]);

        return $filter;
    }

    /**
     * Determine if a filter is a local method on the controller.
     *
     * @param  mixed  $filter
     * @return bool
     *
     * @throws \InvalidArgumentException
     */
    protected function isInstanceFilter($filter)
    {
        if (is_string($filter) && Str::startsWith($filter, '@')) {
            if (method_exists($this, substr($filter, 1))) {
                return true;
            }

            throw new InvalidArgumentException("Filter method [$filter] does not exist.");
        }

        return false;
    }

    /**
     * Remove the given before filter.
     *
     * @param  string  $filter
     * @return void
     *
     * @deprecated since version 5.1.
     */
    public function forgetBeforeFilter($filter)
    {
        $this->beforeFilters = $this->removeFilter($filter, $this->getBeforeFilters());
    }

    /**
     * Remove the given after filter.
     *
     * @param  string  $filter
     * @return void
     *
     * @deprecated since version 5.1.
     */
    public function forgetAfterFilter($filter)
    {
        $this->afterFilters = $this->removeFilter($filter, $this->getAfterFilters());
    }

    /**
     * Remove the given controller filter from the provided filter array.
     *
     * @param  string  $removing
     * @param  array   $current
     * @return array
     */
    protected function removeFilter($removing, $current)
    {
        return array_filter($current, function ($filter) use ($removing) {
            return $filter['original'] != $removing;
        });
    }

    /**
     * Get the middleware assigned to the controller.
     *
     * @return array
     */
    public function getMiddleware()
    {
        return $this->middleware;
    }

    /**
     * Get the registered "before" filters.
     *
     * @return array
     *
     * @deprecated since version 5.1.
     */
    public function getBeforeFilters()
    {
        return $this->beforeFilters;
    }

    /**
     * Get the registered "after" filters.
     *
     * @return array
     *
     * @deprecated since version 5.1.
     */
    public function getAfterFilters()
    {
        return $this->afterFilters;
    }

    /**
     * Get the router instance.
     *
     * @return \Illuminate\Routing\Router
     */
    public static function getRouter()
    {
        return static::$router;
    }

    /**
     * Set the router instance.
     *
     * @param  \Illuminate\Routing\Router  $router
     * @return void
     */
    public static function setRouter(Router $router)
    {
        static::$router = $router;
    }

    /**
     * Execute an action on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function callAction($method, $parameters)
    {
        return call_user_func_array([$this, $method], $parameters);
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
     */
    public function missingMethod($parameters = [])
    {
        throw new NotFoundHttpException('Controller method not found.');
    }

    /**
     * Handle calls to missing methods on the controller.
     *
     * @param  string  $method
     * @param  array   $parameters
     * @return mixed
     *
     * @throws \BadMethodCallException
     */
    public function __call($method, $parameters)
    {
        throw new BadMethodCallException("Method [$method] does not exist.");
    }
}

WebbieWorks started a new conversation Trying To Duplicate A Controller

I have an admin backend which has a section called Users. I am trying to duplicate that for a section called Contacts. I have copied all the pages

ContactController.php Contact.php contact.blade.php

I also added it to my route

Route::get('/dashboard', '[email protected]'); Route::post('/dashboard/editAccount', '[email protected]'); Route::post('/dashboard/editInfo', '[email protected]');

Route::get('/contact/{id}/delete', '[email protected]'); Route::post('/contact/create', '[email protected]'); Route::post('/contact/{id}/edit', '[email protected]'); Route::post('/contact/edit', '[email protected]');

When I upload all them to the server I am getting this error.

BadMethodCallException in Controller.php line 283: Method [contacts] does not exist.

I have no clue what that means or what I could be missing.

04 Mar
2 years ago

WebbieWorks started a new conversation Need Help Intergrading Admin Beckend

I am trying to create an admin backend to my project. I have followed tutorials I found on here such as

https://laracasts.com/discuss/channels/laravel/adding-an-admin-template

But all I am getting is the admin panel is not being intergraded into the site, it is creating its own directory.

So instead of the admin being in the views, resources and what not, it is creating an admin directory above the apps.

Can someone please point me in the right direction on intergrading a simple admin such as AdminLTE to my existing laravel site?

Thank You in advance.

03 Mar
2 years ago

WebbieWorks left a reply on Starter Kit For Ecom Site

I believe I found a solution to help me learn. http://aimeos.org/Laravel

WebbieWorks started a new conversation Starter Kit For Ecom Site

I have tried and tried to get this working, I am having issues inputing the data from the form when adding products.

Is there a starter kit or something that I can look at the source to try and learn this?

Basically I am wanting to add a product with 4-5 different specs (model, size, serial) then have it show on the frontend. I thought I had it but it is just sending blank date to the db.

02 Mar
2 years ago

WebbieWorks left a reply on Whats Your Recommendation For Ecommerce

I appreciate it. #5 may be exactly what I am looking for.

WebbieWorks started a new conversation Whats Your Recommendation For Ecommerce

I am trying to come up with a basic solution for an ecom site.

I seen this - http://elcodi.io/

but is based on Symfony and I am looking to stay with laravel. I watched a few tutorials by mindspace to making a shopping cart but I couldnt figure out how to do an admin where you add the products. Then in reverse, I got an admin going but couldnt figure out how to make the products show on the frontend. Still learning but I have to admit, this is very fun for me.

Any recommendations on a good tutorial or script I can use for an ecom site?

WebbieWorks left a reply on Access Denied

I got it working, It was a brain fart on my end. I didnt have mamp set up right.

26 Feb
2 years ago

WebbieWorks left a reply on Access Denied

Same results

WebbieWorks started a new conversation Access Denied

I have searched for an answer but all I am finding is questions using Homestead.

I am using MAMP for dev and I know I have the database info correct, I even went as far as to delete and create a new database with user info.

This is the error I am getting

[Illuminate\Database\QueryException] SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using pas sword: YES) (SQL: select * from information_schema.tables where table_schem a = valiantData and table_name = migrations)

My .env file looks like this

DB_CONNECTION=mysql DB_HOST=localhost DB_PORT=3306 DB_DATABASE=valiantData DB_USERNAME=root DB_PASSWORD=root

Any help would be greatly appreciated.