mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-01-26 11:14:06 +00:00
1.3 - Getting to Green
This commit is contained in:
11
app/Concert.php
Normal file
11
app/Concert.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Concert extends Model
|
||||
{
|
||||
protected $guarded = [];
|
||||
protected $dates = ['date'];
|
||||
}
|
||||
15
app/Http/Controllers/ConcertsController.php
Normal file
15
app/Http/Controllers/ConcertsController.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Concert;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ConcertsController extends Controller
|
||||
{
|
||||
public function show($id)
|
||||
{
|
||||
$concert = Concert::find($id);
|
||||
return view('concerts.show', ['concert' => $concert]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user