mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Cleaned up migrations, full text search in model
Migrations were pretty much useless for database set up, so that needed some attention to make setting up the project easier. Now, all necessary tables can be created by running the `artisan migrate` command assuming one has the database parameters set in the .env file also added full text search capabilites through the database set up, which the model itself can use to find locations, so the search has been updated in the appropriate locations as well. still need to add initial account set up and a form for adding sources through the UI, but this was a big step towards letting anyone set up their own version of tbs
This commit is contained in:
@ -26,11 +26,17 @@ class FrontIndexController extends Controller
|
||||
|
||||
public function start()
|
||||
{
|
||||
//for fresh installs that dont have any source data yet
|
||||
$latest_update = 'Never Run';
|
||||
if(count($this->location->getRecent()) != 0)
|
||||
{
|
||||
$latest_update = $this->location->getRecent()[0]->updated_at->format('Y M d');
|
||||
}
|
||||
return view('front.index', [
|
||||
'count' => count($this->location->getActiveLocations()),
|
||||
'sources' => count($this->source->getActive()),
|
||||
'recent' => $this->location->getRecent(),
|
||||
'latest_date' => $this->location->getRecent()[0]->updated_at->format('Y M d'),
|
||||
'latest_date' => $latest_update,
|
||||
'title' => "The Bad Space"
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user