Wednesday, December 20, 2017

stripe payment gateway

http://justlaravel.com/integrate-stripe-payment-gateway-laravel/?utm_source=learninglaravel.net

Wednesday, November 29, 2017

laravel excel + captcha

http://itsolutionstuff.com/post/laravel-5-import-export-to-excel-and-csv-using-maatwebsite-exampleexample.html

http://itsolutionstuff.com/post/php-how-to-implement-google-new-recaptcha-code-example-with-demoexample.html

Sunday, September 24, 2017

Docker

Docker : http://shoumik.me/2017/04/04/%E0%A6%A1%E0%A6%95%E0%A6%BE%E0%A6%B0-%E0%A6%95%E0%A6%BF/

laravel package development :
http://shoumik.me/2017/04/04/%E0%A6%A1%E0%A6%95%E0%A6%BE%E0%A6%B0-%E0%A6%95%E0%A6%BF/



Sunday, August 27, 2017

সাবলাইমে পিএইচপির ওয়ার্কফ্লো কনফিগারেশনের জন্য ভাল একটা সিরিজhttps://lm.facebook.com/l.php?u=https%3A%2F%2Flaracasts.com%2Fseries%2Fprofessional-php-workflow-in-sublime-text&h=ATPLRvUOFcoLVgL_YlL-n8oiLbQ5n7OW43Ej6vcU_GokMVtxS3CJHvPoI2IwxpDjw3ObPGvpb9SsFonN62lMnX4F1zzxM_JaNYq_wjygUVx3dWgGgNUQV6D2M5jkblR7q0e0qdRhRaw&enc=AZPIRdmZ9aCAZhex14517lys-NVV9ayBWEzkMs58b-8WCBlLuKzA7ReV-8DUxXYp4zCfyLgvHNVMGwM_PAHxrp520sYUXlWBXJ7ZDdDW2K6vvt9Q1UdHUu5B5rd1nl-CqWHwHGpDUrfEKN5H3g9Pq_2LNBFDy07xl8hwKAJv1nlEeVMeCSkhtt7SC5g4WHHTPYTMPiat0zPuPbxgFzl4DgVdpMClVxqsdZe2ygjP87aA8-6Sjrd7bEAcnx2qyAfCL1-Czp2bRDMlr7NYq8LWWI9RhPCQ1S5tcU7cFiXE5NBJO8UqNiC9zApteaAYCMOPoE8xfu3hSL6iGmUvc-T6UDv_e1WYmruOjSiQvGnRbY_-mS0v19MXg2kHM3h_ZlgH85A&s=1https://lm.facebook.com/l.php?u=https%3A%2F%2Flaracasts.com%2Fseries%2Fprofessional-php-workflow-in-sublime-text&h=ATPLRvUOFcoLVgL_YlL-n8oiLbQ5n7OW43Ej6vcU_GokMVtxS3CJHvPoI2IwxpDjw3ObPGvpb9SsFonN62lMnX4F1zzxM_JaNYq_wjygUVx3dWgGgNUQV6D2M5jkblR7q0e0qdRhRaw&enc=AZPIRdmZ9aCAZhex14517lys-NVV9ayBWEzkMs58b-8WCBlLuKzA7ReV-8DUxXYp4zCfyLgvHNVMGwM_PAHxrp520sYUXlWBXJ7ZDdDW2K6vvt9Q1UdHUu5B5rd1nl-CqWHwHGpDUrfEKN5H3g9Pq_2LNBFDy07xl8hwKAJv1nlEeVMeCSkhtt7SC5g4WHHTPYTMPiat0zPuPbxgFzl4DgVdpMClVxqsdZe2ygjP87aA8-6Sjrd7bEAcnx2qyAfCL1-Czp2bRDMlr7NYq8LWWI9RhPCQ1S5tcU7cFiXE5NBJO8UqNiC9zApteaAYCMOPoE8xfu3hSL6iGmUvc-T6UDv_e1WYmruOjSiQvGnRbY_-mS0v19MXg2kHM3h_ZlgH85A&s=1https://laracasts.com/series/professional-php-workflow-in-sublime-text


laravel pdf generator github link

https://github.com/dompdf/dompdf

Tuesday, August 22, 2017

laravel debugger plugin

https://github.com/barryvdh/laravel-debugbar

Manage newsletters in Laravel 5

This package provides an easy way to integrate MailChimp with Laravel 5. Behind the scenes v3 for the MailChimp API is used. Here are some examples of what you can do with the package:

Please note the at the time of this writing the default merge variables in MailChimp are named FNAME and LNAME. In our examples we use firstName and lastName for extra readability.


Newsletter::subscribe('rincewind@discworld.com');

Newsletter::unsubscribe('the.luggage@discworld.com');

//Merge variables can be passed as the second argument
Newsletter::subscribe('sam.vines@discworld.com', ['firstName'=>'Sam', 'lastName'=>'Vines']);

//Subscribe someone to a specific list by using the third argument:
Newsletter::subscribe('nanny.ogg@discworld.com', ['firstName'=>'Nanny', 'lastName'=>'Ogg'], 'Name of your list');

//Subscribe or update someone
Newsletter::subscribeOrUpdate('sam.vines@discworld.com', ['firstName'=>'Foo', 'lastName'=>'Bar']);

// Change the email address of an existing subscriber
Newsletter::updateEmailAddress('rincewind@discworld.com', 'the.luggage@discworld.com');

//Get some member info, returns an array described in the official docs
Newsletter::getMember('lord.vetinari@discworld.com');

//Get the member activity, returns an array with recent activity for a given user
Newsletter::getMemberActivity('lord.vetinari@discworld.com');

//Get the members for a given list, optionally filtered by passing a second array of parameters
Newsletter::getMembers();

//Check if a member is subscribed to a list
Newsletter::isSubscribed('rincewind@discworld.com');

//Returns a boolean
Newsletter::hasMember('greebo@discworld.com');

//If you want to do something else, you can get an instance of the underlying API:
Newsletter::getApi();
Github link : https://github.com/spatie/laravel-newsletter
Other Important open source plugins : https://spatie.be/en/opensource/laravel


Monday, August 21, 2017

create pagination with angular

==================== for pagination html  start======================
<div class="row site-pagination">
       <div class="col-xs-12">
                    <uib-pagination data-ng-if="totalItems > itemsPerPage" items-per-page="itemsPerPage"                      ng-change="pageChanged(currentPage)" total-items="totalItems" ng-                     model="currentPage" max-size="maxSize" class="pull-right" boundary-links="true" rotate="false" first-text="<i class='fa fa-chevron-left'></i><i class='fa fa-chevron-left'></i>" previous-text="<i class='fa fa-chevron-left'></i>" next-text="<i class='fa fa-chevron-right'></i>" last-text="<i class='fa fa-chevron-right'></i><i class='fa fa-chevron-right'></i>"></uib-pagination>
     </div>
</div>

===================for pagination html end========================
==================  Start function section ==========================
 /* this funtion will be setup on controller js
     Items per page is set default 10 in app.js if change needed active following line
 */
    $scope.itemsPerPage=2;
    $scope.actualPath = $location.path();
    $scope.pageChanged = function (currentPage) {
        if(currentPage > 1){        
            $location.path($scope.actualPath).search('page',currentPage);      
        }else{
            $location.path($scope.actualPath).search('');
        }
        $scope.currentPage = currentPage;
    };
   
    $scope.search = $location.search();
    if($scope.search.page !== undefined){
        $scope.currentPage = $scope.search.page;
        $rootScope.productFilterObj.pageNo = $scope.currentPage;
        _vm.getData($rootScope.productFilterObj);
    }else{
     if(Object.keys($rootScope.productFilterObj).length > 0){
      $rootScope.productFilterObj.pageNo = 1;
      _vm.getData($rootScope.productFilterObj);
     }else{
      _vm.getData();
     }
     
    }

====================  end function section =====================

====================  backend query start =====================
$data=request()->json('ProductFilter');
$pageNo=1;
if(!empty($data)){
$paginate_datas = json_decode($data);
if(isset($paginate_datas->pageNo)){
$pageNo = $paginate_datas->pageNo;
}
}

$questions = Question::where('blogorforum', 0)->where('close', 1)->orderBy('id', 'desc')->forPage($pageNo,$limit)->get();
====================  backend query end=====================


Sunday, August 20, 2017

Important github links for laravel card system

MIT licensed 
Source Code One :
1. https://github.com/darryldecode/laravelshoppingcart

Blog # http://andremadarang.com/implementing-a-shopping-cart-in-laravel/

Demo : http://cartdemo.andredemos.ca/shop

Source Code Two :

2. https://github.com/drehimself/laravel-shopping-cart-example