Replace GitHub links with direct email contact for system acquisition across README.md and all home page Blade templates. Added contato@syspanel.com.br as the primary contact method.
66 lines
2.0 KiB
PHP
Executable File
66 lines
2.0 KiB
PHP
Executable File
@extends('layout')
|
|
|
|
@section('title', 'Database Usage')
|
|
|
|
@section('content')
|
|
<div class="container mt-5">
|
|
<h1 class="display-4 text-primary">Database Usage</h1>
|
|
<p class="lead">CRUD Example with SysMVC.</p>
|
|
|
|
<p>SysMVC makes it easy to interact with databases through the use of Eloquent ORM. You can easily create, read, update, and delete records in the database using intuitive methods.</p>
|
|
|
|
<h2>CRUD Example</h2>
|
|
<p>Below is a basic example of CRUD operations:</p>
|
|
|
|
<h3>Creating a Record</h3>
|
|
<pre><code>
|
|
$client = new Client();
|
|
$client->name = 'Client Name';
|
|
$client->email = 'email@example.com';
|
|
$client->save();
|
|
</code></pre>
|
|
|
|
<h3>Reading Records</h3>
|
|
<pre><code>
|
|
$clients = Client::all();
|
|
foreach ($clients as $client) {
|
|
echo $client->name;
|
|
}
|
|
</code></pre>
|
|
|
|
<h3>Updating a Record</h3>
|
|
<pre><code>
|
|
$client = Client::find(1);
|
|
$client->name = 'New Name';
|
|
$client->save();
|
|
</code></pre>
|
|
|
|
<h3>Deleting a Record</h3>
|
|
<pre><code>
|
|
$client = Client::find(1);
|
|
$client->delete();
|
|
</code></pre>
|
|
|
|
<p>With these examples, you can see how easy it is to work with databases using SysMVC.</p>
|
|
<br><br>
|
|
|
|
<h2 class="mt-4">Contact</h2>
|
|
<p><strong>To obtain the system, please contact us by email: <a href="mailto:contato@syspanel.com.br">contato@syspanel.com.br</a></strong></p>
|
|
<p>If you're interested in SysMVC, get in touch:</p>
|
|
<ul>
|
|
<li>Email: <a href="mailto:syspanel@gmx.com">syspanel@gmx.com</a></li>
|
|
<li>WhatsApp: <a href="https://wa.me/5535992261684" target="_blank">+55 (35) 99226-1684</a></li>
|
|
</ul>
|
|
|
|
<hr class="my-5">
|
|
|
|
<h2 class="mt-4">🙎 Support the Project</h2>
|
|
<p>If you find this project useful, consider supporting its development with a donation via PayPal:</p>
|
|
<p>
|
|
<a href="https://www.paypal.com/donate/?business=marcocosta@gmx.com¤cy_code=USD" target="_blank">
|
|
<img src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="Donate via PayPal">
|
|
</a>
|
|
</p>
|
|
</div>
|
|
@endsection
|