title: Call to undefined function App\Http\Controllers\Post()
body: <p>hi m trying to show data from <code>db</code> to <code>index page</code> but it says: <code>Call to undefined function App\Http\Controllers\Post()</code></p>
  
  <p>controller:</p>
  
  <pre><code>  &lt;?php
  
    namespace App\Http\Controllers;
  
    use Illuminate\Http\Request;
    use App\Post;
  
    class IndexController extends Controller
    {
  
        public function index()
        {
            $data = Post();
            return view('index', compact('data'));
            //return view('index');
        }
  </code></pre>
  
  <p>how can i solve it</p>