Skip to content

Commit

Permalink
Merge pull request #44 from elmarzouguidev/laravel10
Browse files Browse the repository at this point in the history
Hide @feature from Home page , update TimeZone in AppServiceProvider
  • Loading branch information
Zakarialabib authored Oct 20, 2023
2 parents 8746b1e + 1bbc5a1 commit 1ede9cc
Show file tree
Hide file tree
Showing 111 changed files with 851 additions and 848 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Run Pint
run: pint

- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix code styling
#- name: Commit linted files
#uses: stefanzweifel/git-auto-commit-action@v5
#with:
#commit_message: Fix code styling
54 changes: 27 additions & 27 deletions .github/workflows/deployTocPanel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,44 @@ on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
description: "Log level"
required: true
default: 'warning'
default: "warning"
type: choice
options:
- info
- warning
- debug
- info
- warning
- debug

jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: 🚚 Get latest code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
#- name: Setup PHP
#uses: shivammathur/setup-php@v2
#with:
#php-version: 8.2

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction
#- name: Install Composer dependencies
#run: composer install --prefer-dist --no-interaction

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: "16"

- name: 🔨 Build Project
run: |
npm install
npm run build
- name: 🔨 Build Project
run: |
npm install
npm run build
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected function schedule(Schedule $schedule): void

protected function commands(): void
{
$this->load([__DIR__ . '/Commands']);
$this->load([__DIR__.'/Commands']);
// $this->load([__DIR__.'/Commands',__DIR__.'/packages/laravel-subscriptions/src/Console/Commands']);


Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/SendNewArticleNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use App\Notifications\ArticleSubmitted;
use Illuminate\Notifications\AnonymousNotifiable;

final readonly class SendNewArticleNotification
final class SendNewArticleNotification
{
public function __construct(private AnonymousNotifiable $notifiable)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Listeners/SendPaymentNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use App\Notifications\NewSponsorPaymentNotification;
use Illuminate\Notifications\AnonymousNotifiable;

final readonly class SendPaymentNotification
final class SendPaymentNotification
{
public function __construct(private AnonymousNotifiable $notifiable)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function register(): void

public function boot(): void
{
date_default_timezone_set('Africa/Douala');
date_default_timezone_set('Africa/Casablanca');
setlocale(LC_TIME, 'fr_FR', 'fr', 'FR', 'French', 'fr_FR.UTF-8');
setlocale(LC_ALL, 'fr_FR', 'fr', 'FR', 'French', 'fr_FR.UTF-8');
Carbon::setLocale('fr');
Expand Down
24 changes: 24 additions & 0 deletions app/Services/Smtp/CheckSmtpConnection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

namespace App\Services\Smtp;

use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;

class CheckSmtpConnection
{
public static function isConnected(): bool
{

try {
$transport = new EsmtpTransport(config('mail.mailers.smtp.host'), config('mail.mailers.smtp.port'), config('mail.mailers.smtp.encryption'));
$transport->setUsername(config('mail.mailers.smtp.username'));
$transport->setPassword(config('mail.mailers.smtp.password'));
$transport->start();

return true;
} catch (\Exception $e) {
//return info($e->getMessage(), ['error_smtp']);
return false;
}
}
}
78 changes: 39 additions & 39 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@
*/
App\Providers\FortifyServiceProvider::class,
//LaravelFeature\Provider\FeatureServiceProvider::class,

\Rinvex\Subscriptions\Providers\SubscriptionsServiceProvider::class,
\LaravelFeature\Provider\FeatureServiceProvider::class,
/*
* Application Service Providers...
*/
Expand Down
2 changes: 2 additions & 0 deletions config/blade-heroicons.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [

/*
Expand Down
2 changes: 2 additions & 0 deletions config/blade-icons.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [

/*
Expand Down
2 changes: 2 additions & 0 deletions config/debugbar.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

return [

/*
Expand Down
Loading

0 comments on commit 1ede9cc

Please sign in to comment.