forked from surya432/deviku
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
696 additions
and
1,764 deletions.
There are no files selected for viewing
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
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']; | ||
|
||
} |
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
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); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
database/migrations/2020_04_20_011459_create_google_drive_players_table.php
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
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'); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.