Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade version. #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Danny Carrillo
Copyright (c) 2017 Panchania83

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ alertify()->success("The laravel-alertify package is awesome!");
## Installation
This package uses composer, so require it like so:
```
composer require odannyc/laravel-alertify
composer require panchania83/laravel-alertify
```

You'll also need to pull in the `alertify.js` project. This is located here: https://alertifyjs.org/
Expand All @@ -27,14 +27,14 @@ Or include the CDN version of it in your `app.blade.php` template. (File may var
Include the service provider in `config/app.php`:
```php
'providers' => [
odannyc\Alertify\AlertifyServiceProvider::class,
panchania83\Alertify\AlertifyServiceProvider::class,
];
```

Also, include the Alias in `config/app.php`
```php
'aliases' => [
'Alertify' => odannyc\Alertify\Alertify::class,
'Alertify' => panchania83\Alertify\Alertify::class,
];
```

Expand Down
19 changes: 10 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"name": "odannyc/laravel-alertify",
"name": "panchania83/laravel-alertify",
"description": "An alertify package for Laravel",
"homepage": "https://github.com/odannyc/laravel-alertify",
"homepage": "https://github.com/panchania83/laravel-alertify",
"keywords": [
"odannyc",
"panchania83",
"alertify",
"laravel alerts",
"alerts"
],
"minimum-stability": "dev",
"authors": [
{
"name": "Danny Carrillo",
"email": "odannycx@gmail.com"
"name": "Panchani Ankit",
"email": "panchania83@gmail.com"
}
],
"require": {
"php" : "^7.1",
"illuminate/session": "^5.4",
"illuminate/support": "^5.4"
"php": "^7.2.5|^8.0",
"illuminate/session": "^7.3",
"illuminate/support": "^7.3"
},
"autoload": {
"psr-4": {
"odannyc\\Alertify\\": "src/Alertify/"
"panchania83\\Alertify\\": "src/Alertify/"
},
"files": [
"src/Alertify/functions.php"
Expand Down
25 changes: 5 additions & 20 deletions composer.lock

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

6 changes: 3 additions & 3 deletions src/Alertify/Alertify.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @author Panchani Ankit <panchania83@gmail.com>
* @package laravel-alertify
*/

namespace odannyc\Alertify;
namespace panchania83\Alertify;

use Illuminate\Support\Facades\Facade;

Expand All @@ -17,6 +17,6 @@ class Alertify extends Facade
*/
protected static function getFacadeAccessor()
{
return 'odannyc.alertify';
return 'panchania83.alertify';
}
}
6 changes: 3 additions & 3 deletions src/Alertify/AlertifyNotifier.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @author Panchani Ankit <panchania83@gmail.com>
* @package laravel-alertify
*/

namespace odannyc\Alertify;
namespace panchania83\Alertify;

use Illuminate\Session\Store;

Expand Down Expand Up @@ -39,7 +39,7 @@ public function __construct(Store $session)
*/
public function flash(): void
{
$this->session->flash('odannyc.alertify.logs', $this->logs);
$this->session->flash('panchania83.alertify.logs', $this->logs);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Alertify/AlertifyServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @author Panchani Ankit <panchania83@gmail.com>
* @package laravel-alertify
*/

namespace odannyc\Alertify;
namespace panchania83\Alertify;

use Illuminate\Support\ServiceProvider;

Expand All @@ -17,8 +17,8 @@ class AlertifyServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->singleton('odannyc.alertify', function () {
return $this->app->make('odannyc\Alertify\AlertifyNotifier');
$this->app->singleton('panchania83.alertify', function () {
return $this->app->make('panchania83\Alertify\AlertifyNotifier');
});
}

Expand Down
4 changes: 2 additions & 2 deletions src/Alertify/Log.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @author Panchani Ankit <panchania83@gmail.com>
* @package laravel-alertify
*/

namespace odannyc\Alertify;
namespace panchania83\Alertify;

class Log
{
Expand Down
6 changes: 3 additions & 3 deletions src/Alertify/functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* @author Danny Carrillo <odannycx@gmail.com>
* @author Panchani Ankit <panchania83@gmail.com>
* @package laravel-alertify
*/

Expand All @@ -10,11 +10,11 @@
*
* @param string|null $message
*
* @return \odannyc\Alertify\AlertifyNotifier
* @return \panchania83\Alertify\AlertifyNotifier
*/
function alertify($message = null)
{
$notifier = app('odannyc.alertify');
$notifier = app('panchania83.alertify');
if (!is_null($message)) {
return $notifier->standard($message);
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/alertify.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@if (Session::has('odannyc.alertify.logs'))
@if (Session::has('panchania83.alertify.logs'))
<script>
@foreach(Session::pull('odannyc.alertify.logs') as $log)
@foreach(Session::pull('panchania83.alertify.logs') as $log)
alertify.parent({{ $log->parent }});
alertify.delay({{ $log->delay }});
alertify.logPosition('{{ $log->position }}');
Expand Down