I need to make a resource in an application using Laravel. When giving an Excel spreadsheet allow the user to choose which columns to save to the database. Example: I have a spreadsheet with 3 columns, but I just want to select (use some way to...
I'm trying to calculate the average sales value of a store, but I'm having some problems calculating the total value of each sale,
Controller:
$valor_total = PedidoProdutos::with('valor_por_pedido')->get();
Model:
use Illuminate\Data...
I'm developing a chat with Laravel , and I followed this tutorial . The chat is working fine, but I wanted to know how to make a notification like this:
When a message is sent to a user and the user has not yet read it.
Ca...
I performed the installation of laravel-backup, command:
composer require spatie/laravel-backup
I've done the posting of the configuration file:
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
My generated f...
Hello everyone, I'm trying to develop an application and I need a button to share a link via whatsapp, it even shares but the tags are not being loaded because of the subdomain!
Example:
The Url below does not load the tags
link
It...
SELECT temp.total,
p.stc_sexo as sexo,
count(pos.coi_posdoutorando) as numPosDout,
round(((count( pos.coi_posdoutorando)/temp.total)*100),2) as media
FROM
(
select count(*) as total,
0 as sexo,...
Good afternoon, people.
I have foreach on my blade and would like to add one of the fields.
@foreach($occupations as $o)
<tr>
<td>{{ $o->invoiceId }}</td>
<td>{{ date('m/Y', strtotime($o->date_in...
I have a question about using Laravel's Localization correctly, I have an application in Portuguese and I have to translate it into English. My doubt is the following ex:
<h2>Isso será apenas um teste não fique bravo</h2>
I crea...
I'm new to Laravel and wanted to know if I can solve my problem without being in pure PHP, that is, using Laravel's own resources. Here's the current situation and what I want to do:
I have a table named Departments, where I include the depar...