Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found Profile Page #9

Closed
cagcak opened this issue Nov 28, 2017 · 2 comments
Closed

Not found Profile Page #9

cagcak opened this issue Nov 28, 2017 · 2 comments

Comments

@cagcak
Copy link
Contributor

cagcak commented Nov 28, 2017

After successful registration following error appears when the user directs #to My Account :

Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR)
Class 'App\Models\FAQ' not found

Details for the error as follows:

/home/bpocasgt/app/Http/Controllers/Website/Account/AccountController.php

<?php
 
namespace App\Http\Controllers\Website\Account;
 
use App\Models\FAQ;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Http\Controllers\Website\WebsiteController;
 
class AccountController extends WebsiteController
{
    public function index()
    {
        $faq = FAQ::whereHas('category', function($query) {  // FatalThrowableError :Line 14
            return $query->where('name', 'Account');
        })->orderBy('list_order')->get();
 
        return $this->view('account.account', compact('faq'));
    }
}

Arguments
"Class 'App\Models\FAQ' not found"

@bpocallaghan
Copy link
Owner

bpocallaghan commented Nov 28, 2017

Hi @cagcak
Thank you for the feedback.
I've recently moved some 'components' to separate packages, seems that I've missed this page.

Thanks for the detailed message and that you might be interested in this package.

I've pushed the fix and uploaded online.

For more information regarding what I've changed - AccountController

Please shout if you have any more questions or issues. Thanks

@cagcak
Copy link
Contributor Author

cagcak commented Nov 28, 2017

Hello @bpocallaghan thanks for the quick support. I saw the change you made.
I must say this; although it is still being developed, the project is an ideal starting point for small-sized startup bussinesses. I've just recommended this project to my junior developer friends.
Thanks for the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants