Im f*cking crazy whith PhpStorm when tried to fix a popular error Method 'Bla bla' not found in class.
I have been searching for days in google whith hope to find out the way for this problem but no luck.
Almost every singel topic I have read are pointing me to this laravel-ide-helper but after Install thousand times (with fresh laravel project), PhpStorm still not recognize those damn method.
I also install laravel plugin in PhpStorm but still not work too, what can I do now?
Here is my code.
<?php
namespace App\Http\Controllers;
use App\Article;
use App\Menu;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Requestst;
use Illuminate\Support\Facades\Input;
class PagesController extends Controller
{
public function index()
{
$article = Article::latest('published_at')->get();
$data = array(
'articles' => $article
);
return view('pages.index' , compact($data));
}
public function contact()
{
return view('pages.contact');
}
public function about()
{
return view('pages.about');
}
}
Please help.