-
Notifications
You must be signed in to change notification settings - Fork 461
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from viralsolani/develop
Test Cases & Major Refactoring
- Loading branch information
Showing
100 changed files
with
3,690 additions
and
644 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
app/Http/Controllers/Backend/Settings/SettingsLogoController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers\Backend\Settings; | ||
|
||
use App\Http\Controllers\Controller; | ||
use App\Models\Settings\Setting; | ||
use App\Repositories\Backend\Settings\SettingsRepository; | ||
use Illuminate\Http\Request; | ||
|
||
/** | ||
* Class SettingsLogoController. | ||
*/ | ||
class SettingsLogoController extends Controller | ||
{ | ||
protected $settings; | ||
|
||
/** | ||
* @param \App\Repositories\Backend\Settings\SettingsRepository $settings | ||
*/ | ||
public function __construct(SettingsRepository $settings) | ||
{ | ||
$this->settings = $settings; | ||
} | ||
|
||
/** | ||
* Remove logo or favicon icon. | ||
* | ||
* @param \App\Models\Settings\Setting $setting | ||
* @param \Illuminate\Http\Request $request | ||
* | ||
* @return mixed | ||
*/ | ||
public function destroy(Setting $setting, Request $request) | ||
{ | ||
$this->settings->removeLogo($setting, $request->data); | ||
|
||
return json_encode([ | ||
'status' => true, | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.