Skip to content

Commit

Permalink
modif player
Browse files Browse the repository at this point in the history
  • Loading branch information
surya432 committed Apr 19, 2020
1 parent e667478 commit db5ff22
Show file tree
Hide file tree
Showing 23 changed files with 696 additions and 1,764 deletions.
12 changes: 12 additions & 0 deletions app/GoogleDrivePlayer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class GoogleDrivePlayer extends Model
{
//
protected $fillable = ['email','status','cookiestext'];

}
93 changes: 93 additions & 0 deletions app/Http/Controllers/GoogleDrivePlayerController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?php

namespace App\Http\Controllers;

use App\GoogleDrivePlayer;
use Illuminate\Http\Request;

class GoogleDrivePlayerController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
return view('googledriveplayer.index')
}

/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function create()
{
//
return view("googledriveplayer.create");

}

/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function store(Request $request)
{
//
}

/**
* Display the specified resource.
*
* @param \App\GoogleDrivePlayer $googleDrivePlayer
* @return \Illuminate\Http\Response
*/
public function show(GoogleDrivePlayer $googleDrivePlayer)
{
//
}

/**
* Show the form for editing the specified resource.
*
* @param \App\GoogleDrivePlayer $googleDrivePlayer
* @return \Illuminate\Http\Response
*/
public function edit(GoogleDrivePlayer $googleDrivePlayer)
{
//
}

/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\GoogleDrivePlayer $googleDrivePlayer
* @return \Illuminate\Http\Response
*/
public function update(Request $request, GoogleDrivePlayer $googleDrivePlayer)
{
//
}

/**
* Remove the specified resource from storage.
*
* @param \App\GoogleDrivePlayer $googleDrivePlayer
* @return \Illuminate\Http\Response
*/
public function destroy(GoogleDrivePlayer $googleDrivePlayer)
{
$googleDrivePlayer->delete();
return $this->sendResponse($googleDrivePlayer->toArray(), 'googleDrivePlayer deleted successfully.');
}
public function getlist(){
$data = GoogleDrivePlayer::where('status','active')->random(1)->first();
return response()->json($data);
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"laravelcollective/html": "^5.2.0",
"maatwebsite/excel": "^3.1",
"nesbot/carbon": "^1.0",
"sunra/php-simple-html-dom-parser": "^1.5",
"torann/geoip": "^1.0",
"weidner/goutte": "^1.3",
"yajra/laravel-datatables": "^1.0"
Expand Down
97 changes: 95 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoogleDrivePlayersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('google_drive_players', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('email');
$table->text('cookiestext');
$table->string('status');
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('google_drive_players');
}
}
5 changes: 0 additions & 5 deletions public/cookies/cookies1.txt

This file was deleted.

5 changes: 0 additions & 5 deletions public/cookies/cookies2.txt

This file was deleted.

5 changes: 0 additions & 5 deletions public/cookies/cookies3.txt

This file was deleted.

5 changes: 0 additions & 5 deletions public/cookies/cookies4.txt

This file was deleted.

5 changes: 0 additions & 5 deletions public/cookies/cookies5.txt

This file was deleted.

Loading

0 comments on commit db5ff22

Please sign in to comment.