lundi 26 mars 2018

how to approve and disapprove campaign in laravel?

I have Campaign List in admin side.. I want to approve and disapprove campaign..

enter image description here

my campaign schema :

public function up()
    {
        Schema::create('campaign', function (Blueprint $table) {
            $table->engine='InnoDB';

            $table->increments('id');
            $table->integer('users_id')->unsigned();
            $table->foreign('users_id')->references('id')->on('users')
                    ->onDelete('cascade')->onUpdate('cascade');
            $table->string('campaign_name');
            $table->float('campaign_goal',8,2);
            $table->string('discription',400);
            $table->string('image');
            $table->string('category');
            $table->date('start_date');
            $table->date('end_date');
            $table->float('total_fund',8,2);
            $table->boolean('is_approved');
            $table->softDeletes();
        });
    }  

How to approve and disapprove campaign... Please provide code...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire