Skip to content

Instantly share code, notes, and snippets.

View cdmathukiya's full-sized avatar

Chintan Mathukiya cdmathukiya

  • Rajkot
View GitHub Profile
@cdmathukiya
cdmathukiya / Array.vue
Created January 5, 2022 06:02
Vue component
<template>
<div class="widget">
<div v-if="activeItems && activeItems.length > 0">
<ul>
<li :key="item.id" v-for="item in activeItems">
{{item.name}}
</li>
</ul>
</div>
</div>
@cdmathukiya
cdmathukiya / CustomerTest.php
Created January 5, 2022 06:00
Testcase for store method
<?php
namespace Tests\Feature;
use App\Mail\WelcomeNewCustomer;
use Illuminate\Support\Facades\Mail;
use Tests\TestCase;
class CustomerTest extends TestCase
{
/**
@cdmathukiya
cdmathukiya / CustomerController.php
Last active January 5, 2022 06:22
Controller and service
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Services\CustomerService;
use Illuminate\Http\Request;
class CustomerController extends Controller
{