all models into model folder
This commit is contained in:
parent
98f50a2b6f
commit
6990469c67
46 changed files with 325 additions and 203 deletions
|
@ -17,6 +17,10 @@ class HomeController extends Controller
|
|||
{
|
||||
//$this->middleware('auth');
|
||||
}
|
||||
public function test(): View
|
||||
{
|
||||
return view('welcome');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the application dashboard.
|
||||
|
@ -43,7 +47,6 @@ class HomeController extends Controller
|
|||
|
||||
// }
|
||||
return view('frontend.home.index');
|
||||
// return view('welcome');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
namespace App\Http\Controllers\Frontend;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Dataset;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\Dataset;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class PagesController extends Controller
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
namespace App\Http\Controllers\Frontend;
|
||||
|
||||
use App\Book;
|
||||
use App\Dataset;
|
||||
use App\Models\Dataset;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Library\Search\Navigation;
|
||||
use App\Library\Util\SolrSearchSearcher;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
namespace App\Http\Controllers\Frontend;
|
||||
|
||||
use App\Models\Dataset;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Dataset;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class SitelinkController extends Controller
|
||||
|
@ -24,7 +24,7 @@ class SitelinkController extends Controller
|
|||
return view('frontend.sitelink.index')->with(['years' => $this->years, 'documents' => $this->ids]);
|
||||
}
|
||||
|
||||
public function list($year)
|
||||
public function listDocs($year)
|
||||
{
|
||||
$this->index();
|
||||
if (preg_match('/^\d{4}$/', $year) > 0) {
|
||||
|
@ -34,7 +34,7 @@ class SitelinkController extends Controller
|
|||
$select = Dataset::with('titles', 'authors')
|
||||
->where('server_state', 'LIKE', "%" . $serverState . "%");
|
||||
|
||||
$from = (int)$year;
|
||||
$from = (int) $year;
|
||||
$until = $year + 1;
|
||||
$select
|
||||
->whereYear('server_date_published', '>=', $from)
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue