Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
removed laravel-alert lang namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
monurakkaya committed Aug 19, 2018
1 parent ea0c430 commit 140170c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/app/Providers/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Monurakkaya\LaravelAlert\Providers;

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider as BaseProvider;

class ServiceProvider extends BaseProvider
Expand Down
10 changes: 5 additions & 5 deletions src/app/Support/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
function success($message, $title = null)
{
if ($title === null) {
$title = trans('laravel-alert::laravel-alert.success.default_title');
$title = trans('laravel-alert.success.default_title');
}
alert($message, $title, 'success', config('laravel-alert.success_class', 'bg-success'));
}
Expand All @@ -15,7 +15,7 @@ function success($message, $title = null)
function error($message, $title = null)
{
if ($title === null) {
$title = trans('laravel-alert::laravel-alert.error.default_title');
$title = trans('laravel-alert.error.default_title');
}
alert($message, $title, 'error', config('laravel-alert.error_class', 'bg-danger'));
}
Expand All @@ -36,21 +36,21 @@ function alert($message, $title, $type, $class)
if (!function_exists('success_for_create')) {
function success_for_create()
{
success(trans('laravel-alert::laravel-alert.success.create'));
success(trans('laravel-alert.success.create'));
}
}

if (!function_exists('success_for_update')) {
function success_for_update()
{
success(trans('laravel-alert::laravel-alert.success.update'));
success(trans('laravel-alert.success.update'));
}
}

if (!function_exists('success_for_delete')) {
function success_for_delete()
{
success(trans('laravel-alert::laravel-alert.success.delete'));
success(trans('laravel-alert.success.delete'));
}

}

0 comments on commit 140170c

Please sign in to comment.