The Model is the data and logic layer in the MVC architecture. It manages the application's data and ensures that it is correctly stored, retrieved, and processed.
✅ Data Management: Stores and handles data, often in a database.
✅ Business Logic: Contains rules and calculations (e.g., discount calculation for orders).
✅ Data Validation: Checks if input is correct (e.g., if an email address is valid).
✅ Database Communication: Performs CRUD operations (Create, Read, Update, Delete).
class BlogPost extends Model {
protected $fillable = ['title', 'content']; // Erlaubte Felder für Massenverarbeitung
// Beziehung: Ein Blogpost gehört zu einem Benutzer
public function user() {
return $this->belongsTo(User::class);
}
}
🔹 fillable
: Specifies which fields can be saved.
🔹 belongsTo(User::class)
: Indicates that each blog post belongs to a user.
✔ The Model handles all data and business logic of the application.
✔ It ensures a clear separation between data and presentation.
✔ Changes to the data structure only need to be made in the Model, not throughout the entire application.
Meteor is an open-source JavaScript framework that allows developers to quickly and easily build web and mobile applications. It was released in 2012 by the Meteor Development Group (MDG) and is designed to streamline the development process while unifying code for both the frontend and backend. Meteor is particularly useful for real-time applications due to its reactive architecture.
JavaScript Everywhere:
Real-Time Functionality:
Isomorphic Code:
Built-in Database Support:
Easy Integration:
Fast Development Process:
Meteor is an excellent framework for developers aiming to create reactive, cross-platform applications quickly. It’s particularly well-suited for projects where real-time updates and rapid development are priorities.
Bubble is a no-code platform that allows users to create web applications without needing to write code. It’s designed for people who want to develop interactive, database-driven apps like marketplaces, social networks, SaaS tools, or other complex applications without diving into traditional programming.
Visual Editor:
Workflows:
Database Management:
Responsive Design:
Plugins and API Integrations:
Hosting and Deployment:
Bubble is particularly well-suited for rapid MVPs (Minimum Viable Products) or projects where flexibility and speed are more important than full technical control.
Kirby CMS is a flexible, file-based Content Management System (CMS) designed for developers and designers who value maximum control over their projects. Created by Bastian Allgeier, it is known for its minimalist approach and high adaptability. Here are the key features of Kirby CMS:
Kirby stores content in simple text files (usually Markdown or YAML) instead of relying on a database like MySQL. This makes it ideal for small to medium-sized projects where setting up and maintaining a database is unnecessary.
Kirby doesn’t come with pre-built themes, giving developers complete freedom to create templates and layouts from scratch. It’s PHP-based, allowing you to design dynamic websites tailored to your needs.
The Panel is an intuitive interface for editors to manage content. It provides a clear structure and can be customized to meet the specific requirements of each project, ensuring a user-friendly experience.
Kirby is particularly appealing to web developers because it:
Kirby isn’t free. While you can test it without cost, a license is required for live, production use. This ensures high-quality, ad-free development, making it a popular choice for professional projects.
Kirby is suitable for:
Kirby CMS is perfect for projects that demand maximum flexibility and control. It combines straightforward content management with powerful developer tools, making it a favorite among designers and developers who want to build bespoke websites from scratch.
MariaDB is a relational database management system (RDBMS) developed as an open-source alternative to MySQL. It was created in 2009 by the original MySQL developers after MySQL was acquired by Oracle. The goal was to provide a fully open, compatible version of MySQL that remains independent.
MySQL Compatibility:
Enhanced Features:
Active Development:
MariaDB is a powerful and flexible database solution, highly valued for its openness, security, and compatibility with MySQL. It is an excellent choice for developers and organizations looking for a reliable open-source database.
The MERN Stack is a collection of JavaScript technologies commonly used to build modern, scalable, and dynamic web applications. The name is an acronym that represents the four main technologies in the stack:
MongoDB (M):
Express.js (E):
React.js (R):
Node.js (N):
The MERN Stack is particularly popular among startups and companies looking to build fast, interactive web applications.
The MEAN stack is a modern collection of JavaScript-based technologies used together to develop dynamic, scalable, and high-performance web applications. MEAN is an acronym representing the four main components of the stack:
M – MongoDB
E – Express.js
A – Angular
N – Node.js
The MEAN stack is often compared to the MERN stack, which uses React instead of Angular for the frontend. While Angular provides a complete solution, React allows more flexibility with its "bring-your-own-library" philosophy.
The LEMP stack is a collection of software commonly used together to host dynamic websites and web applications. The acronym "LEMP" represents the individual components of the stack:
Linux: The operating system that serves as the foundation for the stack. It supports the other software components.
Nginx (pronounced "Engine-X"): A high-performance, resource-efficient web server. Nginx is often preferred because it scales better for handling simultaneous connections compared to Apache.
MySQL (or MariaDB): The relational database used to store data. MySQL is commonly paired with PHP to generate dynamic content. Modern setups often use MariaDB, a fork of MySQL.
PHP, Python, or Perl: The scripting language used for server-side programming. PHP is particularly popular in web development for rendering database-driven dynamic content on web pages.
The LEMP stack is a modern alternative to the better-known LAMP stack, which uses Apache as the web server.
An object-oriented database management system (OODBMS) is a type of database system that combines the principles of object-oriented programming (OOP) with the functionality of a database. It allows data to be stored, retrieved, and managed as objects, similar to how they are defined in object-oriented programming languages like Java, Python, or C++.
Object Model:
Classes and Inheritance:
Encapsulation:
Persistence:
Object Identity (OID):
Complex Data Types:
Object-oriented databases are particularly useful for managing complex, hierarchical, or nested data structures commonly found in modern software applications.
Object Query Language (OQL) is a query language similar to SQL (Structured Query Language) but specifically designed for object-oriented databases. It is used to query data from object-oriented database systems (OODBs), which store data as objects. OQL was defined as part of the Object Data Management Group (ODMG) standard.
Object-Oriented Focus:
SQL-Like Syntax:
Querying Complex Objects:
Support for Methods:
Integration with Object-Oriented Languages:
Suppose there is a database with a class Person
that has the attributes Name
and Age
. An OQL query might look like this:
SELECT p.Name
FROM Person p
WHERE p.Age > 30
This query retrieves the names of all people whose age is greater than 30.
In practice, OQL is less popular than SQL since relational databases are still dominant. However, OQL is very powerful in specialized applications that utilize object-oriented data models.