Religion has long been a powerful force in shaping the cultural fabric of societies worldwide. Its influence extends far beyond personal beliefs, permeating local customs, architecture, and even culinary practices. From ancient times to the present day, religious traditions have played a pivotal role in moulding the unique characteristics of communities, creating a rich tapestry of diverse cultural expressions. This profound impact is evident in the intricate ways religious practices intertwine with daily life, festivals, and social norms across different regions.
The interplay between religion and local traditions is a fascinating subject that reveals the complex nature of cultural identity. As we explore this relationship, we’ll uncover how religious beliefs have been adapted and incorporated into regional customs, often resulting in unique syncretic practices that blend elements from multiple faith traditions. This fusion of religious and cultural elements has given rise to some of the most vibrant and enduring traditions observed around the globe today.
Syncretic religious practices in local customs
Syncretism, the blending of different religious beliefs and practices, is a common phenomenon that occurs when diverse cultural traditions intersect. This process often results in unique local customs that reflect a harmonious fusion of various religious elements. In many parts of the world, indigenous beliefs have merged with dominant religions, creating rich and complex spiritual practices that are deeply rooted in local culture.
For instance, in parts of Latin America, Catholic traditions have intermingled with indigenous beliefs, resulting in distinctive forms of religious expression. The Day of the Dead celebrations in Mexico exemplify this syncretic approach, combining pre-Columbian rituals with Catholic observances. Similarly, in the Caribbean, religions like Santería and Vodou represent a blend of West African spiritual traditions with elements of Catholicism, reflecting the historical legacy of slavery and colonisation.
These syncretic practices often serve as a bridge between different cultural influences, allowing communities to maintain connections to their ancestral heritage while adapting to new religious frameworks. The resulting traditions are not only spiritually significant but also play a crucial role in preserving cultural identity and fostering social cohesion within communities.
Liturgical calendars and community festivals
Religious calendars have a profound impact on the rhythm of community life, shaping local traditions and cultural practices. These liturgical cycles often dictate the timing of major festivals, rituals, and observances that bring communities together and reinforce shared values. The interplay between religious calendars and local customs has given rise to some of the world’s most vibrant and enduring cultural celebrations.
Feast days and agricultural cycles
In many agricultural societies, religious feast days are closely aligned with seasonal changes and harvest cycles. This connection between faith and nature has resulted in a rich tapestry of traditions that mark important moments in the agricultural year. For example, the Jewish festival of Sukkot coincides with the autumn harvest, while many Christian harvest festivals in Europe have roots in pre-Christian celebrations of the land’s bounty.
These religiously-influenced agricultural celebrations often involve rituals of thanksgiving, communal feasting, and symbolic offerings. They serve not only as expressions of faith but also as crucial moments for community bonding and the reinforcement of cultural identity. The timing of these events, dictated by both religious and agricultural calendars, creates a unique rhythm to community life that has endured for generations.
Processional rituals: the case of seville’s semana santa
One of the most striking examples of how religious calendars shape local traditions is the Semana Santa (Holy Week) celebrations in Seville, Spain. This annual event, which takes place in the week leading up to Easter, transforms the city into a stage for elaborate processions that draw participants and spectators from around the world.
The Semana Santa processions feature pasos , large wooden floats carrying scenes from the Passion of Christ or statues of the Virgin Mary. These pasos are carried through the streets by teams of costaleros , hidden beneath the floats, creating the illusion that the statues are gliding through the crowds. The processions are organised by hermandades (brotherhoods), some of which date back to the 13th century.
This tradition not only reflects deep religious devotion but also showcases local craftsmanship, music, and community organisation. The event has become an integral part of Seville’s cultural identity, drawing tourists and pilgrims alike, and contributing significantly to the local economy. It serves as a prime example of how religious observances can evolve into complex cultural phenomena that extend far beyond their spiritual origins.
Pilgrimage routes: camino de santiago’s impact on regional economies
Pilgrimage routes, often established along ancient trade paths, have played a significant role in shaping regional economies and cultural exchanges. One of the most famous examples is the Camino de Santiago, a network of pilgrimage routes leading to the shrine of the apostle Saint James the Great in the cathedral of Santiago de Compostela in Galicia, Spain.
The Camino de Santiago has been a major pilgrimage route since the Middle Ages, and its impact on the regions it traverses has been profound. Towns and villages along the route have developed economies centred around serving pilgrims, with a proliferation of hostels, restaurants, and souvenir shops. This influx of visitors has not only boosted local economies but has also led to cultural exchange and the preservation of historical sites and traditions.
In recent years, the Camino has experienced a resurgence in popularity, attracting both religious pilgrims and secular travellers seeking a unique cultural experience. This renewed interest has led to the development of new infrastructure and the restoration of historical sites along the route, further cementing its importance in the cultural and economic landscape of northern Spain.
Carnivalesque traditions: rio de janeiro’s Pre-Lenten celebrations
The concept of Carnival, rooted in Catholic traditions of feasting before the austerity of Lent, has evolved into one of the world’s most spectacular cultural events in Rio de Janeiro, Brazil. While its origins are religious, the Rio Carnival has become a celebration that transcends faith, embodying the vibrant spirit of Brazilian culture.
The Rio Carnival features elaborate parades, samba competitions, and street parties that draw millions of participants and spectators from around the globe. The event showcases Brazil’s rich cultural heritage, blending African, European, and indigenous influences in a dazzling display of music, dance, and costumes.
This transformation of a religious observance into a major cultural and economic phenomenon illustrates the dynamic nature of traditions influenced by faith. The Carnival not only boosts Rio’s economy through tourism but also serves as a powerful expression of national identity and creativity. It demonstrates how religious calendars can give rise to traditions that evolve beyond their original context, taking on new meanings and significance in contemporary society.
Sacred architecture’s influence on urban planning
Religious architecture has played a pivotal role in shaping the urban landscape of cities and towns across the world. From ancient times to the present day, places of worship have often served as focal points around which communities have developed, influencing street layouts, public spaces, and even the overall character of urban areas.
Gothic cathedrals as medieval town centres
In medieval Europe, Gothic cathedrals stood as towering symbols of faith and community pride. These magnificent structures not only served religious purposes but also functioned as the heart of civic life. The construction of a cathedral often spanned generations, becoming a collective endeavour that united the community and shaped the town’s identity.
The presence of a cathedral typically led to the development of a bustling town centre, with markets, guilds, and civic buildings clustering around the sacred space. The cathedral square often became the main public gathering place, hosting festivals, markets, and important civic events. This centrality of religious architecture in urban planning created a distinct pattern of radial street layouts, with main thoroughfares converging on the cathedral.
The influence of these Gothic cathedrals extended beyond their immediate vicinity, often determining the skyline and visual character of entire towns. Their spires and towers served as landmarks for travellers and pilgrims, while their grandeur reflected the prosperity and ambitions of the community. Even today, many European cities bear the imprint of this medieval urban planning centred around sacred architecture.
Islamic geometric patterns in andalusian design
The influence of Islamic architecture and design principles is particularly evident in the Andalusian region of Spain, where centuries of Muslim rule left an indelible mark on the urban landscape. Islamic geometric patterns, characterised by complex, interlocking designs, have become a defining feature of Andalusian architecture and decorative arts.
These intricate patterns, often featuring repeating motifs of stars and polygons, are not merely decorative but carry deep symbolic and spiritual significance in Islamic tradition. They represent the infinite nature of Allah and the underlying order of the universe. In Andalusian cities like Granada, Cordoba, and Seville, these patterns can be found adorning buildings, courtyards, and public spaces, creating a unique visual identity that blends Islamic and European influences.
The integration of these geometric designs into urban planning extends beyond individual buildings. The layout of gardens, the arrangement of water features, and even the planning of street networks often reflect principles of Islamic design, emphasising symmetry, proportion, and the harmonious integration of natural elements. This architectural legacy continues to influence modern design in the region, serving as a testament to the enduring impact of religious aesthetics on urban environments.
Buddhist stupas and their role in city layout
In many Asian cultures influenced by Buddhism, the stupa—a dome-shaped structure containing relics—has played a significant role in urban planning and architecture. These sacred monuments often serve as the central point around which cities and towns are organised, influencing street layouts and the placement of other important buildings.
One of the most famous examples is the ancient city of Anuradhapura in Sri Lanka, where massive stupas dominated the urban landscape. The city was planned with these stupas as focal points, with major roads radiating outwards from these sacred structures. This arrangement not only facilitated religious processions and pilgrimages but also created a hierarchical urban space that reflected Buddhist cosmology.
In Tibetan and Nepalese cities, the concept of the mandala —a spiritual and ritual symbol representing the cosmos—often influenced urban planning. Cities were sometimes designed to resemble a mandala when viewed from above, with stupas or other sacred structures at the centre and important buildings arranged in concentric circles or squares around this central point.
The influence of Buddhist architecture on urban planning extends to modern times, with many contemporary Asian cities incorporating elements of traditional design in new developments. This ongoing integration of religious architectural principles in urban spaces demonstrates the enduring impact of spiritual traditions on the physical layout of human settlements.
Religious dietary laws and local cuisine
Religious dietary laws have profoundly shaped local cuisines around the world, influencing not only what people eat but also how food is prepared, served, and shared. These dietary regulations, often rooted in ancient texts and traditions, have given rise to unique culinary practices that reflect both spiritual beliefs and cultural identity.
Kosher practices in jewish diaspora communities
Kosher dietary laws, derived from the Torah, have played a crucial role in shaping Jewish cuisine across diverse diaspora communities. These laws dictate which foods are permissible ( kosher ) and how they should be prepared, leading to the development of distinctive culinary traditions that vary by region while adhering to common principles.
In Eastern European Jewish communities, for instance, the need to separate meat and dairy products led to the creation of pareve (neutral) foods like challah bread and kugel . The practice of not cooking on the Sabbath gave rise to slow-cooked dishes like cholent, a hearty stew that could be prepared before sundown on Friday and kept warm for Saturday’s meal.
In Sephardic Jewish communities around the Mediterranean, kosher laws combined with local ingredients to produce unique dishes. For example, the absence of dairy in meat meals led to the use of olive oil and spices for flavouring, resulting in rich, aromatic cuisines that reflect both religious observance and regional influences.
Halal food preparation and its global adaptations
Halal dietary guidelines, based on Islamic law, have significantly influenced cuisine in Muslim-majority countries and increasingly in global food markets. The concept of halal extends beyond the prohibition of pork and alcohol to include methods of animal slaughter and food preparation.
In Southeast Asian countries like Malaysia and Indonesia, halal requirements have led to the development of unique culinary traditions that blend local flavours with Islamic dietary laws. For example, rendang, a spicy meat dish, is typically made with beef or chicken to comply with halal standards, while still incorporating regional spices and cooking techniques.
The global spread of halal food practices has also led to interesting culinary fusions. In non-Muslim countries, restaurants and food producers are increasingly offering halal options, leading to innovations like halal Chinese cuisine or halal-certified sushi. This adaptation of halal principles to diverse culinary traditions demonstrates the dynamic interplay between religious dietary laws and local food cultures.
Fasting traditions: ramadan’s effect on daily rhythms
The Islamic month of Ramadan, during which observant Muslims fast from dawn to sunset, has a profound impact on daily life and culinary traditions in Muslim-majority countries. This period of fasting has given rise to unique meal patterns and special dishes associated with breaking the fast.
The iftar , the meal eaten at sunset to break the fast, often features traditional foods that vary by region. In many Middle Eastern countries, dates are commonly used to break the fast, following the example of the Prophet Muhammad. This is often followed by a light meal before the main iftar feast.
The suhoor , the pre-dawn meal eaten before fasting begins, has also led to the development of specific culinary traditions. In Egypt, for instance, fava beans (ful medames) are a popular suhoor dish, chosen for their ability to provide sustained energy throughout the day.
Ramadan has also influenced broader social customs, with many Muslim-majority countries adjusting business hours and social activities to accommodate the fasting schedule. This shift in daily rhythms during the holy month demonstrates how religious practices can shape not only eating habits but also the broader patterns of daily life in a community.
Vegetarianism in Hindu-Majority regions
In Hindu-majority regions, particularly in India, religious beliefs have significantly contributed to the prevalence of vegetarianism. The concept of ahimsa (non-violence) and respect for all life forms has led many Hindus to adopt a vegetarian diet, shaping the culinary landscape of entire regions.
This religious influence has resulted in a rich and diverse vegetarian cuisine, with a wide array of dishes based on lentils, vegetables, and dairy products. In states like Gujarat and Rajasthan, where vegetarianism is particularly common, local cuisines have evolved to create protein-rich, nutritionally balanced meals without the use of meat.
The influence of Hindu vegetarianism extends beyond India, impacting cuisine in countries with significant Hindu populations, such as Nepal and parts of Southeast Asia. It has also contributed to the global popularity of Indian vegetarian dishes, influencing vegetarian and vegan movements worldwide.
Religious dietary practices, whether kosher, halal, fasting traditions, or vegetarianism, demonstrate the profound impact of faith on daily life and cultural expression. These culinary traditions not only reflect spiritual beliefs but also serve as important markers of cultural identity, adapting and evolving as communities migrate and interact with other cultures.
Scriptural languages and vernacular evolution
The languages of sacred texts have played a crucial role in shaping linguistic traditions and literary cultures across the world. As religious scriptures were translated, interpreted, and disseminated, they often became catalysts for the development and standardisation of vernacular languages. This process has had far-reaching effects on cultural identity, education, and literary traditions in many societies.
In Europe, the translation of the Bible into vernacular languages during the Reformation period had a profound impact on linguistic development. Martin Luther’s translation of the Bible into German, for instance, not only made religious texts more accessible to the common people but also played a significant role in standardising the German language. Similarly, the King James Version of the Bible has been influential in shaping the English language, contributing numerous phrases and idioms to everyday speech.
In the Islamic world, Classical Arabic, the language of the Quran, has served as a unifying force across diverse linguistic communities. While local dialects and languages continue to thrive, Classical Arabic remains the language of religious scholarship and liturgy, influencing literary traditions and education systems across the Muslim world.
In India, Sanskrit, the language of ancient Hindu scriptures, has had a lasting
influence on the development of many Indian languages. While Sanskrit is no longer widely spoken, it continues to be used in Hindu religious ceremonies and has contributed significantly to the vocabulary and grammar of modern Indian languages. The study of Sanskrit remains an important part of classical Indian education and scholarship.
In East Asia, Classical Chinese, the language of Confucian and Taoist texts, has had a profound impact on the literary traditions of China, Japan, Korea, and Vietnam. Even as vernacular languages developed, Classical Chinese remained the language of scholarship and official communication for centuries, shaping the written cultures of these nations.
The interplay between scriptural languages and vernacular evolution has not only preserved ancient wisdom but also fostered linguistic diversity and cultural exchange. As communities interpret and adapt religious texts to local contexts, they create rich tapestries of language and literature that reflect both universal spiritual themes and unique cultural expressions.
Religiously-influenced dress codes and textile traditions
Religious beliefs and practices have significantly influenced clothing styles and textile traditions around the world. These dress codes often serve as visible markers of faith, cultural identity, and social status. The interplay between religious requirements and local textile crafts has resulted in a rich diversity of clothing styles that reflect both spiritual values and artistic expression.
Hijab styles across different islamic cultures
The hijab, a head covering worn by many Muslim women, exemplifies how religious dress codes can adapt to local cultural contexts. While the basic concept of modesty remains consistent, the styles and methods of wearing the hijab vary widely across different Islamic cultures.
In the Middle East, the abaya (a loose-fitting, full-length robe) is often worn with a headscarf. In North Africa, the haik (a large, draped cloth that covers the body and head) is common. Southeast Asian countries like Malaysia and Indonesia have developed their own distinctive hijab styles, often incorporating vibrant colors and patterns that reflect local textile traditions.
The evolution of hijab fashion has also led to the emergence of modern, fashion-forward interpretations that blend religious requirements with contemporary style. This has given rise to a thriving modest fashion industry that caters to Muslim women worldwide, demonstrating the dynamic nature of religiously-influenced dress codes.
Sikh turbans: variations and significance
The turban worn by Sikh men is a powerful symbol of faith and identity. Known as the dastar, it is an integral part of the Sikh articles of faith. While the requirement to wear a turban is consistent across Sikh communities, the styles and methods of tying can vary based on regional traditions and personal preferences.
In Punjab, the spiritual homeland of Sikhism, the Pagg style of turban is common. This style involves carefully pleating a long piece of cloth and wrapping it around the head. In contrast, the Dumalla style, featuring a taller, more rounded shape, is often associated with Nihang Sikhs, a warrior order within the faith.
The colors of Sikh turbans can also carry significance. While any color can be worn, certain hues are associated with specific occasions or groups. For example, saffron and blue are colors traditionally linked to spiritual wisdom and sovereignty in Sikh tradition.
Christian clerical vestments in liturgical practice
Christian clerical vestments play a significant role in liturgical practices across various denominations. These garments not only distinguish clergy from laity but also carry symbolic meanings related to faith and office. The styles and uses of vestments often reflect the theological and historical traditions of different Christian branches.
In the Roman Catholic and Eastern Orthodox churches, elaborate vestments are an integral part of liturgical celebrations. The chasuble, a poncho-like garment worn by priests during Mass, often features rich embroidery and symbolism. Its color changes according to the liturgical season or feast day, reflecting the church’s calendar.
Protestant denominations vary in their use of clerical vestments. While some, like Anglicans and Lutherans, maintain many traditional vestments, others opt for simpler attire. The Geneva gown, a plain black robe, became popular in Reformed churches as a rejection of elaborate Catholic vestments, emphasizing the authority of scripture over ceremonial dress.
Traditional buddhist robes in southeast asian countries
Buddhist monastic robes, known as kasaya, have a long history dating back to the time of the Buddha. These robes not only serve as practical garments but also symbolize the monk’s renunciation of worldly attachments. While the basic concept remains constant, the style and color of Buddhist robes can vary significantly across different regions and traditions.
In Theravada Buddhist countries like Thailand, Myanmar, and Sri Lanka, monks typically wear saffron-colored robes. The bright hue is believed to have originated from the use of jackfruit wood to dye cloth. In these traditions, the robe consists of several pieces, including an upper and lower robe, and an outer robe used for formal occasions.
In contrast, Mahayana Buddhist traditions in East Asia often feature robes in darker colors such as grey or black. Vietnamese monks may wear brown robes, while Tibetan Buddhist monks are known for their distinctive maroon robes, often paired with a yellow vest for certain ceremonies.
The variations in Buddhist robes across Southeast Asian countries reflect not only different interpretations of Buddhist teachings but also local textile traditions and climatic considerations. These garments serve as a visible reminder of the Buddhist presence in these societies and play a crucial role in maintaining monastic identity and discipline.
# README.mdThis is a very basic [Adonis JS 5 App](https://adonisjs.com) for a fictional rental car company. I created it because I wanted totest different automated end-to-end testing tools.### Prerequisites* Node JS >= 14.5### Installation* Clone the repo* Run `npm install`* Copy `.env.example` to `.env`* Run `node ace serve –watch` to start the development server* Open http://127.0.0.1:3333 in your browser### Run tests* Run `npm run test` to run tests using [Playwright](https://playwright.dev/)### Generate new test files* Run `npm run test:generate` to generate new test files using [Playwright Codegen](https://playwright.dev/docs/codegen)End File# tests/functional/home.spec.tsimport { test, expect } from ‘@playwright/test’;test(‘has title’, async ({ page }) => { await page.goto(‘/’); // Expect a title “to contain” a substring. await expect(page).toHaveTitle(/Rent-A-Ride/);});test(‘filter – manual’, async ({ page }) => { await page.goto(‘/’); await page.getByRole(‘checkbox’, { name: ‘Manual’ }).check(); await page.getByRole(‘button’, { name: ‘Apply’ }).click(); await expect(page.getByText(‘Manual’).first()).toBeVisible(); await expect(page.getByText(‘Automatic’).first()).not.toBeVisible();});test(‘filter – automatic’, async ({ page }) => { await page.goto(‘/’); await page.getByRole(‘checkbox’, { name: ‘Automatic’ }).check(); await page.getByRole(‘button’, { name: ‘Apply’ }).click(); await expect(page.getByText(‘Automatic’).first()).toBeVisible(); await expect(page.getByText(‘Manual’).first()).not.toBeVisible();});End File# tests/functional/booking.spec.tsimport { test, expect } from ‘@playwright/test’;test(‘book a car’, async ({ page }) => { await page.goto(‘/’); await page.getByRole(‘button’, { name: ‘Book’ }).first().click(); await page.getByLabel(‘First Name’).click(); await page.getByLabel(‘First Name’).fill(‘John’); await page.getByLabel(‘Last Name’).click(); await page.getByLabel(‘Last Name’).fill(‘Doe’); await page.getByLabel(‘Email’).click(); await page.getByLabel(‘Email’).fill(‘john@doe.com’); await page.getByLabel(‘Phone’).click(); await page.getByLabel(‘Phone’).fill(‘123456789’); await page.getByLabel(‘Start Date’).click(); await page.getByLabel(‘Start Date’).fill(‘2023-09-27’); await page.getByLabel(‘End Date’).click(); await page.getByLabel(‘End Date’).fill(‘2023-09-30’); await page.getByRole(‘button’, { name: ‘Book’ }).click(); await expect(page.getByText(‘Booking successful’)).toBeVisible();});test(‘errors when form is not filled’, async ({ page }) => { await page.goto(‘/’); await page.getByRole(‘button’, { name: ‘Book’ }).first().click(); await page.getByRole(‘button’, { name: ‘Book’ }).click(); await expect(page.getByText(‘First Name is required’)).toBeVisible(); await expect(page.getByText(‘Last Name is required’)).toBeVisible(); await expect(page.getByText(‘Email is required’)).toBeVisible(); await expect(page.getByText(‘Phone is required’)).toBeVisible(); await expect(page.getByText(‘Start Date is required’)).toBeVisible(); await expect(page.getByText(‘End Date is required’)).toBeVisible();});End Fileimport { DateTime } from ‘luxon’import { BaseModel, column } from ‘@ioc:Adonis/Lucid/Orm’export default class Car extends BaseModel { @column({ isPrimary: true }) public id: number @column() public name: string @column() public transmission: string @column() public pricePerDay: number @column() public image: string @column.dateTime({ autoCreate: true }) public createdAt: DateTime @column.dateTime({ autoCreate: true, autoUpdate: true }) public updatedAt: DateTime}End Fileimport BaseSchema from ‘@ioc:Adonis/Lucid/Schema’export default class extends BaseSchema { protected tableName = ‘cars’ public async up () { this.schema.createTable(this.tableName, (table) => { table.increments(‘id’) table.string(‘name’) table.string(‘transmission’) table.integer(‘price_per_day’) table.string(‘image’) /** * Uses timestamptz for PostgreSQL and DATETIME2 for MSSQL */ table.timestamp(‘created_at’, { useTz: true }) table.timestamp(‘updated_at’, { useTz: true }) }) } public async down () { this.schema.dropTable(this.tableName) }}End Fileimport BaseSeeder from ‘@ioc:Adonis/Lucid/Seeder’import Car from “App/Models/Car”;export default class extends BaseSeeder { public async run () { await Car.createMany([ { name: ‘Toyota Yaris’, transmission: ‘Manual’, pricePerDay: 100, image: ‘https://d2isq0rxl22jbs.cloudfront.net/e0a56fd2-c5bf-49cf-97fd-9b8bafd2a92a.jpg’, }, { name: ‘Toyota Corolla’, transmission: ‘Automatic’, pricePerDay: 150, image: ‘https://d2isq0rxl22jbs.cloudfront.net/d16ee95e-2255-428e-a4fd-df19f7a95aa4.jpg’, }, { name: ‘Nissan Qashqai’, transmission: ‘Manual’, pricePerDay: 200, image: ‘https://d2isq0rxl22jbs.cloudfront.net/84f34cad-f5f5-466c-8a9c-2d5a9b0a4a83.jpg’, }, { name: ‘Nissan X-Trail’, transmission: ‘Automatic’, pricePerDay: 250, image: ‘https://d2isq0rxl22jbs.cloudfront.net/f8b69c8c-64da-4d31-94fd-0a09e84e3833.jpg’, }, { name: ‘Volkswagen Golf’, transmission: ‘Manual’, pricePerDay: 180, image: ‘https://d2isq0rxl22jbs.cloudfront.net/3b98c22d-a0ba-4de9-8d09-7c3ed58aebc3.jpg’, }, { name: ‘Volkswagen Passat’, transmission: ‘Automatic’, pricePerDay: 220, image: ‘https://d2isq0rxl22jbs.cloudfront.net/02d1d34f-c84a-45ca-bd43-8f92bae2dc8f.jpg’, }, ]) }}End File# app/Controllers/Http/HomeController.tsimport type { HttpContextContract } from ‘@ioc:Adonis/Core/HttpContext’import Car from ‘App/Models/Car’export default class HomeController { public async index({ view, request }: HttpContextContract) { const transmission = request.input(‘transmission’, []) const cars = await Car.query().if(transmission.length > 0, (query) => { query.whereIn(‘transmission’, transmission) }) return view.render(‘home’, { cars, transmission }) }}End File# Jonathanfullstack/Teste_deploy# app/Controllers/Http/BookingsController.tsimport type { HttpContextContract } from ‘@ioc:Adonis/Core/HttpContext’import Car from ‘App/Models/Car’import { schema, rules } from ‘@ioc:Adonis/Core/Validator’export default class BookingsController { public async create({ view, params }: HttpContextContract) { const car = await Car.findOrFail(params.id) return view.render(‘booking’, { car }) } public async store({ request, response }: HttpContextContract) { const bookingSchema = schema.create({ firstName: schema.string({ trim: true }, [rules.required()]), lastName: schema.string({ trim: true }, [rules.required()]), email: schema.string({ trim: true }, [rules.required(), rules.email()]), phone: schema.string({ trim: true }, [rules.required()]), startDate: schema.date({ format: ‘yyyy-MM-dd’ }, [rules.required()]), endDate: schema.date({ format: ‘yyyy-MM-dd’ }, [rules.required()]), }) await request.validate({ schema: bookingSchema, messages: { ‘firstName.required’: ‘First Name is required’, ‘lastName.required’: ‘Last Name is required’, ’email.required’: ‘Email is required’, ’email.email’: ‘Email is invalid’, ‘phone.required’: ‘Phone is required’, ‘startDate.required’: ‘Start Date is required’, ‘endDate.required’: ‘End Date is required’, }, }) return response.redirect().back() }}End Fileimport type { HttpContextContract } from ‘@ioc:Adonis/Core/HttpContext’import Car from ‘App/Models/Car’export default class CarsController { public async index({ view }: HttpContextContract) { const cars = await Car.all() return view.render(‘home’, { cars }) }}End File# resources/views/layouts/main.edgehtml