Created files for gallery

This commit is contained in:
frederikpyt 2020-06-30 08:52:46 +02:00
parent fd87e133e9
commit 8445a22732
6 changed files with 237 additions and 12 deletions

View File

@ -2,9 +2,84 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Album;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class AlbumController extends Controller class AlbumController extends Controller
{ {
// /**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function 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\Album $album
* @return \Illuminate\Http\Response
*/
public function show(Album $album)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Album $album
* @return \Illuminate\Http\Response
*/
public function edit(Album $album)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Album $album
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Album $album)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\Album $album
* @return \Illuminate\Http\Response
*/
public function destroy(Album $album)
{
//
}
} }

View File

@ -2,9 +2,84 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Image;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class ImageController extends Controller class ImageController extends Controller
{ {
// /**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function 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\Image $image
* @return \Illuminate\Http\Response
*/
public function show(Image $image)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Image $image
* @return \Illuminate\Http\Response
*/
public function edit(Image $image)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Image $image
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Image $image)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\Image $image
* @return \Illuminate\Http\Response
*/
public function destroy(Image $image)
{
//
}
} }

View File

@ -2,9 +2,84 @@
namespace App\Http\Controllers; namespace App\Http\Controllers;
use App\Video;
use Illuminate\Http\Request; use Illuminate\Http\Request;
class VideoController extends Controller class VideoController extends Controller
{ {
// /**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
//
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public function 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\Video $video
* @return \Illuminate\Http\Response
*/
public function show(Video $video)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param \App\Video $video
* @return \Illuminate\Http\Response
*/
public function edit(Video $video)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param \App\Video $video
* @return \Illuminate\Http\Response
*/
public function update(Request $request, Video $video)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param \App\Video $video
* @return \Illuminate\Http\Response
*/
public function destroy(Video $video)
{
//
}
} }

View File

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateGalleryAlbum extends Migration class CreateAlbumsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,7 +13,7 @@ class CreateGalleryAlbum extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('gallery_album', function (Blueprint $table) { Schema::create('albums', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
}); });
@ -26,6 +26,6 @@ class CreateGalleryAlbum extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('gallery_album'); Schema::dropIfExists('albums');
} }
} }

View File

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateGalleryVideo extends Migration class CreateImagesTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,7 +13,7 @@ class CreateGalleryVideo extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('gallery_video', function (Blueprint $table) { Schema::create('images', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
}); });
@ -26,6 +26,6 @@ class CreateGalleryVideo extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('gallery_video'); Schema::dropIfExists('images');
} }
} }

View File

@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema; use Illuminate\Support\Facades\Schema;
class CreateGalleryImage extends Migration class CreateVideosTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
@ -13,7 +13,7 @@ class CreateGalleryImage extends Migration
*/ */
public function up() public function up()
{ {
Schema::create('gallery_image', function (Blueprint $table) { Schema::create('videos', function (Blueprint $table) {
$table->id(); $table->id();
$table->timestamps(); $table->timestamps();
}); });
@ -26,6 +26,6 @@ class CreateGalleryImage extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('gallery_image'); Schema::dropIfExists('videos');
} }
} }