class Asa extends Controller {
public function index()
{
$model = Asаa::all();
return View('asa');
}
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Asaа extends Model {
}
class User extends Model {}
Note that we did not tell Eloquent which table to use for our User model. The "snake case", plural name of the class will be used as the table name unless another name is explicitly specified. So, in this case, Eloquent will assume the User model stores records in the users table. You may specify a custom table by defining a table property on your model:
class User extends Model {
protected $table = 'my_users';
}