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
Да се направи vue + vuetify app , който | |
- да взима офисите на еконт или директно с axios или да се направи api end point на laravel | |
- да ги слага в vuex store | |
- да ги визуализира в https://vuetifyjs.com/en/components/data-tables/#custom-filter | |
Docs: | |
https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides | |
http://ee.econt.com/services/ |
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
<?php | |
public function index(Request $request, Cart $cart) | |
{ | |
$cartFacade = CartFacade::getMe(); | |
$cartHelper = cart()->getMe(); | |
$cartFacade->is = 1; | |
echo 'Object ID from facade: ' . spl_object_id($cartFacade) . "<br />"; |
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
<?php | |
if (!function_exists('cart')) { | |
function cart() | |
{ | |
return app('cart'); | |
} | |
} | |
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
<?php | |
namespace App\Facades; | |
use Illuminate\Support\Facades\Facade; | |
class Cart extends Facade | |
{ | |
/** | |
* Get the registered name of the component. |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
use App\Cart\Cart; | |
class CartServiceProvider extends ServiceProvider | |
{ | |
/** |
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
<?php | |
namespace App\Http\Controllers\API; | |
use App\Http\Controllers\Controller; | |
use App\Http\Requests\ClientCategoryRequest; | |
use App\Http\Requests\ClientRequest; | |
use App\Models\Client; | |
use App\Models\Business; | |
use Illuminate\Http\Request; |
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
<?php | |
if (!empty($postData['html'])) { | |
$this->setHtml($postData['html']); | |
unset($postData['html']); | |
} | |
if (!empty($postData['url'])) { | |
$this->setUrl($postData['url']); | |
unset($postData['url']); |
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
<?php | |
if (empty($postData['url'])) { | |
$this->setHtml($postData['html']); | |
unset($postData['html']); | |
} else { | |
$this->setUrl($postData['url']); | |
unset($postData['url']); | |
} |