If I have a really long table name that I wouldn’t want to repeat and would normally alias it in a regular SQL query, can I do that with Laravel’s query builder?
@fpendovskiAug 12.2022 — #Yes you can, by using the alias in the table method of DB: $users = DB::table('really_long_table_name AS t') ->select('t.id') ->get();