This repository has been archived by the owner on Apr 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
229 additions
and
58 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 @@ | ||
<?php | ||
|
||
/* Blinter Profile Controller 0.1 - Modificado por ultima vez el 18/11/2017 */ | ||
namespace App\Http\Controllers\Auth; | ||
|
||
use App\User; | ||
use Illuminate\Http\Request; | ||
use App\Http\Controllers\Controller; | ||
use Illuminate\Support\Facades\Validator; | ||
use Illuminate\Foundation\Auth\RegistersUsers; | ||
|
||
class BlinterProfileController extends Controller | ||
{ | ||
// | ||
} |
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
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,58 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
class ProjectsController extends Controller | ||
{ | ||
//Crear Proyecto | ||
public function create(Request $request){ | ||
//Creando Proyecto | ||
$proyecto = new bproyecto(); | ||
//Definiendo Proyecto | ||
$proyecto -> nombre = $request -> nombre; | ||
$proyecto -> descripcion = $request -> descripcion; | ||
$proyecto -> area = $request -> area; | ||
//Guardando Proyecto | ||
$proyecto -> save(); | ||
//Retorno | ||
return redirect('/proyectos'); | ||
} | ||
//Leer Proyecto | ||
public function read(){ | ||
//Leer | ||
$proyectos = bproyecto::all(); | ||
//Imprimir | ||
return view('proyectos.index',['proyectos' => $proyectos]); | ||
} | ||
//Editar Proyecto | ||
public function edit($id){ | ||
$proyectos = bproyecto::all(); | ||
$proyecto = bproyecto::findOrFail($id); | ||
return view('proyectos.index',['proyectos' => $proyectos, 'project' => $project]); | ||
} | ||
//Actualizar Proyecto | ||
public function update(Request $request, $id){ | ||
$proyecto = bproyecto::findOrFail($id); | ||
//Definiendo Proyecto | ||
$proyecto -> nombre = $request -> nombre; | ||
$proyecto -> descripcion = $request -> descripcion; | ||
$proyecto -> area = $request -> area; | ||
//Guardando Proyecto | ||
$proyecto -> save(); | ||
//Retorno | ||
return redirect('/proyectos'); | ||
} | ||
//Preguntar | ||
public function preguntar($id){ | ||
$proyectos = broyecto::all(); | ||
$proyectoDelete = bproyecto::findOrFail($id); | ||
return view('proyectos.index',['proyectos' => $proyectos, 'proyectoDelete' => $proyectoDelete]); | ||
} | ||
public function delete($id){ | ||
$proyecto = bproyecto::findOrFail($id); | ||
$proyecto -> delete(); | ||
return redirect('/proyectos'); | ||
} | ||
} |
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
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
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
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,49 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
class UserDetails extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('user_details', function (Blueprint $table) { | ||
$table->increments('id')->index(); | ||
//Datos Personales | ||
$table->string('firtsname'); | ||
$table->string('lastname'); | ||
$table->string('username')->unique(); | ||
$table->mediumText('msg_personal')->nulleable; | ||
$table->mediumText('Bio')->nulleable; | ||
$table->string('Twitter')->nulleable; | ||
$table->string('Facebook')->nulleable; | ||
$table->integer('Celular')->nulleable; | ||
$table->integer('DNI')->nulleable; | ||
//Llave Foreana | ||
$table->integer('user_id')->unsigned(); | ||
//Relacion | ||
Schema::enableForeignKeyConstraints(); | ||
$table->foreign('user_id') | ||
->references('id')->on('users') | ||
->onDelete('cascade'); | ||
//Creacion / Actualizacion | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::dropIfExists('user_details'); | ||
} | ||
} |
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 Projects extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::create('Projects', function (Blueprint $table) { | ||
$table->increments('id')->index(); | ||
$table->string('Nombre'); | ||
$table->string('Descripcion'); | ||
$table->string('Area'); | ||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::dropIfExists('Projects'); | ||
} | ||
} |
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
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,20 @@ | ||
@extends('layouts.app') | ||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Dashboard</div> | ||
<div class="panel-body"> | ||
@if (session('status')) | ||
<div class="alert alert-success"> | ||
{{ session('status') }} | ||
</div> | ||
@endif | ||
Estas conectado! | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
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