Initial commit
This commit is contained in:
commit
b1eef2c976
442 changed files with 73302 additions and 0 deletions
33
.env.example
Normal file
33
.env.example
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
APP_NAME=
|
||||
APP_ENV=
|
||||
APP_KEY=
|
||||
APP_DEBUG=true
|
||||
APP_URL=
|
||||
ASSET_URL=storage/
|
||||
|
||||
LOG_CHANNEL=stack
|
||||
LOG_DEPRECATIONS_CHANNEL=null
|
||||
LOG_LEVEL=debug
|
||||
|
||||
DB_CONNECTION=mysql
|
||||
DB_HOST=
|
||||
DB_PORT=
|
||||
DB_DATABASE=
|
||||
DB_USERNAME=
|
||||
DB_PASSWORD=
|
||||
|
||||
BROADCAST_DRIVER=log
|
||||
CACHE_DRIVER=file
|
||||
FILESYSTEM_DISK=local
|
||||
QUEUE_CONNECTION=sync
|
||||
SESSION_DRIVER=file
|
||||
SESSION_LIFETIME=120
|
||||
|
||||
MAIL_MAILER=smtp
|
||||
MAIL_HOST=
|
||||
MAIL_PORT=
|
||||
MAIL_USERNAME=
|
||||
MAIL_PASSWORD=
|
||||
MAIL_ENCRYPTION=null
|
||||
MAIL_FROM_ADDRESS=
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/node_modules
|
||||
/public/hot
|
||||
/public/storage
|
||||
/storage/*.key
|
||||
/vendor
|
||||
.env
|
||||
.env.backup
|
||||
.phpunit.result.cache
|
||||
docker-compose.override.yml
|
||||
Homestead.json
|
||||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
/.idea
|
||||
/.vscode
|
||||
64
README.md
Normal file
64
README.md
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400"></a></p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
|
||||
## About Laravel
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
|
||||
## Learning Laravel
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
|
||||
|
||||
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
## Laravel Sponsors
|
||||
|
||||
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell).
|
||||
|
||||
### Premium Partners
|
||||
|
||||
- **[Vehikl](https://vehikl.com/)**
|
||||
- **[Tighten Co.](https://tighten.co)**
|
||||
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
||||
- **[64 Robots](https://64robots.com)**
|
||||
- **[Cubet Techno Labs](https://cubettech.com)**
|
||||
- **[Cyber-Duck](https://cyber-duck.co.uk)**
|
||||
- **[Many](https://www.many.co.uk)**
|
||||
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
|
||||
- **[DevSquad](https://devsquad.com)**
|
||||
- **[Curotec](https://www.curotec.com/services/technologies/laravel/)**
|
||||
- **[OP.GG](https://op.gg)**
|
||||
- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)**
|
||||
- **[Lendio](https://lendio.com)**
|
||||
|
||||
## Contributing
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
|
||||
## Security Vulnerabilities
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
7
SOFTWARE.md
Normal file
7
SOFTWARE.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
PHP 8.0.2
|
||||
Laravel 9.2
|
||||
Voyager 1.5
|
||||
Mysql 5.7.20
|
||||
nodejs v16.14.2
|
||||
npm 8.7.0
|
||||
Composer version 2.2.9
|
||||
BIN
app/._Concept.php
Normal file
BIN
app/._Concept.php
Normal file
Binary file not shown.
BIN
app/._Console
Normal file
BIN
app/._Console
Normal file
Binary file not shown.
BIN
app/._Content.php
Normal file
BIN
app/._Content.php
Normal file
Binary file not shown.
BIN
app/._Exceptions
Normal file
BIN
app/._Exceptions
Normal file
Binary file not shown.
BIN
app/._Home.php
Normal file
BIN
app/._Home.php
Normal file
Binary file not shown.
BIN
app/._Http
Normal file
BIN
app/._Http
Normal file
Binary file not shown.
BIN
app/._LandingPage.php
Normal file
BIN
app/._LandingPage.php
Normal file
Binary file not shown.
BIN
app/._Models
Normal file
BIN
app/._Models
Normal file
Binary file not shown.
BIN
app/._Page.php
Normal file
BIN
app/._Page.php
Normal file
Binary file not shown.
BIN
app/._Part.php
Normal file
BIN
app/._Part.php
Normal file
Binary file not shown.
BIN
app/._Product.php
Normal file
BIN
app/._Product.php
Normal file
Binary file not shown.
BIN
app/._Providers
Normal file
BIN
app/._Providers
Normal file
Binary file not shown.
BIN
app/._Recipe.php
Normal file
BIN
app/._Recipe.php
Normal file
Binary file not shown.
BIN
app/._RetailGroup.php
Normal file
BIN
app/._RetailGroup.php
Normal file
Binary file not shown.
BIN
app/._Retailregion.php
Normal file
BIN
app/._Retailregion.php
Normal file
Binary file not shown.
BIN
app/._SalesRegion.php
Normal file
BIN
app/._SalesRegion.php
Normal file
Binary file not shown.
BIN
app/._Slider.php
Normal file
BIN
app/._Slider.php
Normal file
Binary file not shown.
BIN
app/._Snippet.php
Normal file
BIN
app/._Snippet.php
Normal file
Binary file not shown.
BIN
app/._Store.php
Normal file
BIN
app/._Store.php
Normal file
Binary file not shown.
BIN
app/._View
Normal file
BIN
app/._View
Normal file
Binary file not shown.
11
app/Concept.php
Normal file
11
app/Concept.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Concept extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/Console/._Kernel.php
Normal file
BIN
app/Console/._Kernel.php
Normal file
Binary file not shown.
32
app/Console/Kernel.php
Normal file
32
app/Console/Kernel.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace App\Console;
|
||||
|
||||
use Illuminate\Console\Scheduling\Schedule;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
/**
|
||||
* Define the application's command schedule.
|
||||
*
|
||||
* @param \Illuminate\Console\Scheduling\Schedule $schedule
|
||||
* @return void
|
||||
*/
|
||||
protected function schedule(Schedule $schedule)
|
||||
{
|
||||
// $schedule->command('inspire')->hourly();
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the commands for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function commands()
|
||||
{
|
||||
$this->load(__DIR__.'/Commands');
|
||||
|
||||
require base_path('routes/console.php');
|
||||
}
|
||||
}
|
||||
11
app/Content.php
Normal file
11
app/Content.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Content extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/Exceptions/._Handler.php
Normal file
BIN
app/Exceptions/._Handler.php
Normal file
Binary file not shown.
50
app/Exceptions/Handler.php
Normal file
50
app/Exceptions/Handler.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
/**
|
||||
* A list of exception types with their corresponding custom log levels.
|
||||
*
|
||||
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
|
||||
*/
|
||||
protected $levels = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* A list of the exception types that are not reported.
|
||||
*
|
||||
* @var array<int, class-string<\Throwable>>
|
||||
*/
|
||||
protected $dontReport = [
|
||||
//
|
||||
];
|
||||
|
||||
/**
|
||||
* A list of the inputs that are never flashed for validation exceptions.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $dontFlash = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
|
||||
/**
|
||||
* Register the exception handling callbacks for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->reportable(function (Throwable $e) {
|
||||
//
|
||||
});
|
||||
}
|
||||
}
|
||||
11
app/Home.php
Normal file
11
app/Home.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Home extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/Http/._Controllers
Normal file
BIN
app/Http/._Controllers
Normal file
Binary file not shown.
BIN
app/Http/._Kernel.php
Normal file
BIN
app/Http/._Kernel.php
Normal file
Binary file not shown.
BIN
app/Http/._Middleware
Normal file
BIN
app/Http/._Middleware
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._API
Normal file
BIN
app/Http/Controllers/._API
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._ContactController.php
Normal file
BIN
app/Http/Controllers/._ContactController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._Controller.php
Normal file
BIN
app/Http/Controllers/._Controller.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._GroupController.php
Normal file
BIN
app/Http/Controllers/._GroupController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._PageController.php
Normal file
BIN
app/Http/Controllers/._PageController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._ProductController.php
Normal file
BIN
app/Http/Controllers/._ProductController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._RecipeController.php
Normal file
BIN
app/Http/Controllers/._RecipeController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._RegionController.php
Normal file
BIN
app/Http/Controllers/._RegionController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/._StoreController.php
Normal file
BIN
app/Http/Controllers/._StoreController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/API/._ProductController.php
Normal file
BIN
app/Http/Controllers/API/._ProductController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/API/._RecipeController.php
Normal file
BIN
app/Http/Controllers/API/._RecipeController.php
Normal file
Binary file not shown.
BIN
app/Http/Controllers/API/._StoreController.php
Normal file
BIN
app/Http/Controllers/API/._StoreController.php
Normal file
Binary file not shown.
66
app/Http/Controllers/API/ProductController.php
Normal file
66
app/Http/Controllers/API/ProductController.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\API;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Product;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ProductController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
return Product::all();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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\Models\Product $product
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Product $product)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\Models\Product $product
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, Product $product)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\Models\Product $product
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(Product $product)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
66
app/Http/Controllers/API/RecipeController.php
Normal file
66
app/Http/Controllers/API/RecipeController.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers\API;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Recipe;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class RecipeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
//
|
||||
return Recipe::all();
|
||||
}
|
||||
|
||||
/**
|
||||
* 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\Models\Recipe $recipe
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function show(Recipe $recipe)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the specified resource in storage.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \App\Models\Recipe $recipe
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function update(Request $request, Recipe $recipe)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param \App\Models\Recipe $recipe
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy(Recipe $recipe)
|
||||
{
|
||||
//
|
||||
}
|
||||
}
|
||||
26
app/Http/Controllers/API/StoreController.php
Normal file
26
app/Http/Controllers/API/StoreController.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Stores;
|
||||
|
||||
class StoreController extends Controller
|
||||
{
|
||||
// Stores
|
||||
public function index(){
|
||||
return Stores::all();
|
||||
}
|
||||
|
||||
public function show($id){
|
||||
return Stores::find($id);
|
||||
}
|
||||
|
||||
// Stores by city
|
||||
public function city($city){
|
||||
//return Stores::where('city', $city)->first();
|
||||
//return Stores::where('city', $city)::all;
|
||||
//return Stores::where('city', '=', $city)->get();
|
||||
|
||||
}
|
||||
}
|
||||
44
app/Http/Controllers/ContactController.php
Normal file
44
app/Http/Controllers/ContactController.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Mail;
|
||||
|
||||
class ContactController extends Controller
|
||||
{
|
||||
|
||||
public function contactForm()
|
||||
{
|
||||
return view('pages.kontakt');
|
||||
}
|
||||
|
||||
public function sendContactForm(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'vorname' => 'required',
|
||||
'nachname' => 'required',
|
||||
'email' => 'required|email',
|
||||
//'phone' => 'required|digits:10|numeric',
|
||||
'nachricht' => 'required',
|
||||
'datenschutz' => 'required',
|
||||
]);
|
||||
|
||||
$input = $request->all();
|
||||
|
||||
// Send mail
|
||||
\Mail::send('contactMail', array(
|
||||
'vorname' => $input['vorname'],
|
||||
'nachname' => $input['nachname'],
|
||||
'email' => $input['email'],
|
||||
'nachricht' => $input['nachricht'],
|
||||
), function($message) use ($request){
|
||||
$message->from('info@wenndannmitrespekt.de', 'Kontaktformular wenndannmitrespekt.de');
|
||||
$message->to('kontakt@wenndannmitrespekt.de', 'kontakt@wenndannmitrespekt.de')->subject('Kontaktformular wenndannmitrespekt.de');
|
||||
});
|
||||
|
||||
return redirect()->back()->with(['success' => 'Vielen Dank für Ihre Nachricht.']);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
13
app/Http/Controllers/Controller.php
Normal file
13
app/Http/Controllers/Controller.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Illuminate\Foundation\Bus\DispatchesJobs;
|
||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||
use Illuminate\Routing\Controller as BaseController;
|
||||
|
||||
class Controller extends BaseController
|
||||
{
|
||||
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
||||
}
|
||||
13
app/Http/Controllers/GroupController.php
Normal file
13
app/Http/Controllers/GroupController.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Retailgroup;
|
||||
|
||||
class GroupController extends Controller
|
||||
{
|
||||
public function show($id){
|
||||
return Retailgroup::find($id);
|
||||
}
|
||||
}
|
||||
17
app/Http/Controllers/PageController.php
Normal file
17
app/Http/Controllers/PageController.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Page;
|
||||
|
||||
class PageController extends Controller
|
||||
{
|
||||
|
||||
public function index(Request $request, string $slug){
|
||||
|
||||
$page = Page::where('slug', $slug)->first();
|
||||
if($page == null)abort(404);
|
||||
return view('pages.page', compact('page'));
|
||||
}
|
||||
}
|
||||
34
app/Http/Controllers/ProductController.php
Normal file
34
app/Http/Controllers/ProductController.php
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Product;
|
||||
|
||||
class ProductController extends Controller
|
||||
{
|
||||
public function index(){
|
||||
|
||||
$products = Product::all()->sortby('sequence')->reverse()->groupBy('poultry');
|
||||
|
||||
//dd($products);
|
||||
// filter poultry
|
||||
$poultries = $products->keys()->sort();
|
||||
//dd($poultries);
|
||||
return view('pages.produkte', compact(['products', 'poultries']));
|
||||
}
|
||||
|
||||
public function show($id){
|
||||
|
||||
$product = Product::where('id', $id)->first();
|
||||
if($product == null){
|
||||
$product = Product::where('slug', $id)->first();
|
||||
|
||||
if($product == null){
|
||||
abort(404);
|
||||
}
|
||||
}
|
||||
return view('pages.produkt', compact('product'));
|
||||
}
|
||||
|
||||
}
|
||||
44
app/Http/Controllers/RecipeController.php
Normal file
44
app/Http/Controllers/RecipeController.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Recipe;
|
||||
|
||||
class RecipeController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// get recipies
|
||||
$recipes = Recipe::where('live', '1')->get();
|
||||
|
||||
// filter poultry
|
||||
$poultries = $recipes->unique('cat')->pluck('cat');
|
||||
|
||||
// filter difficulty
|
||||
$difficulties = $recipes->unique('difficulty')->pluck('difficulty');
|
||||
|
||||
|
||||
return view('pages.rezepte', compact(['recipes', 'poultries', 'difficulties']));
|
||||
}
|
||||
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
// get recipies
|
||||
$recipe = Recipe::where('id', $id)->first();
|
||||
if($recipe == null){
|
||||
$recipe = Recipe::where('slug', $id)->first();
|
||||
|
||||
if($recipe == null){
|
||||
abort(404);
|
||||
}
|
||||
}
|
||||
return view('pages.rezept', compact(['recipe']));
|
||||
}
|
||||
}
|
||||
13
app/Http/Controllers/RegionController.php
Normal file
13
app/Http/Controllers/RegionController.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Retailregion;
|
||||
|
||||
class RegionController extends Controller
|
||||
{
|
||||
public function show($id){
|
||||
return Retailregion::find($id);
|
||||
}
|
||||
}
|
||||
60
app/Http/Controllers/StoreController.php
Normal file
60
app/Http/Controllers/StoreController.php
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Store;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class StoreController extends Controller
|
||||
{
|
||||
// Stores
|
||||
public function index(){
|
||||
return Store::all();
|
||||
}
|
||||
|
||||
public function show($id){
|
||||
return Store::find($id);
|
||||
}
|
||||
|
||||
// Stores by city
|
||||
public function city($city){
|
||||
|
||||
if (is_numeric($city)) {
|
||||
return Store::where('zipcode', '=', $city)->get();
|
||||
} else {
|
||||
return Store::where('city', '=', $city)->get();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Stores by city
|
||||
public function city2($city){
|
||||
|
||||
if (is_numeric($city)) {
|
||||
//return Store::where('zipcode', '=', $city)->get();
|
||||
|
||||
$stores = DB::table('stores')
|
||||
->join('retailregions', 'stores.region_id', '=', 'retailregions.id')
|
||||
->join('retailgroups', 'retailregions.region_group', '=', 'retailgroups.id')
|
||||
->select('stores.*', 'retailregions.*', 'retailgroups.*')
|
||||
->where('stores.zipcode', $city)
|
||||
->get();
|
||||
|
||||
return $stores;
|
||||
} else {
|
||||
|
||||
$stores = DB::table('stores')
|
||||
->join('retailregions', 'stores.region_id', '=', 'retailregions.id')
|
||||
->join('retailgroups', 'retailregions.region_group', '=', 'retailgroups.id')
|
||||
->select('stores.*', 'retailregions.*', 'retailgroups.*')
|
||||
->where('stores.city', $city)
|
||||
->get();
|
||||
|
||||
return $stores;
|
||||
|
||||
//return Store::where('city', '=', $city)->get();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
67
app/Http/Kernel.php
Normal file
67
app/Http/Kernel.php
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http;
|
||||
|
||||
use Illuminate\Foundation\Http\Kernel as HttpKernel;
|
||||
|
||||
class Kernel extends HttpKernel
|
||||
{
|
||||
/**
|
||||
* The application's global HTTP middleware stack.
|
||||
*
|
||||
* These middleware are run during every request to your application.
|
||||
*
|
||||
* @var array<int, class-string|string>
|
||||
*/
|
||||
protected $middleware = [
|
||||
// \App\Http\Middleware\TrustHosts::class,
|
||||
\App\Http\Middleware\TrustProxies::class,
|
||||
\Illuminate\Http\Middleware\HandleCors::class,
|
||||
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
|
||||
\App\Http\Middleware\TrimStrings::class,
|
||||
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's route middleware groups.
|
||||
*
|
||||
* @var array<string, array<int, class-string|string>>
|
||||
*/
|
||||
protected $middlewareGroups = [
|
||||
'web' => [
|
||||
\App\Http\Middleware\EncryptCookies::class,
|
||||
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
|
||||
\Illuminate\Session\Middleware\StartSession::class,
|
||||
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
|
||||
\App\Http\Middleware\VerifyCsrfToken::class,
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
|
||||
'api' => [
|
||||
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
|
||||
'throttle:api',
|
||||
\Illuminate\Routing\Middleware\SubstituteBindings::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* The application's route middleware.
|
||||
*
|
||||
* These middleware may be assigned to groups or used individually.
|
||||
*
|
||||
* @var array<string, class-string|string>
|
||||
*/
|
||||
protected $routeMiddleware = [
|
||||
'auth' => \App\Http\Middleware\Authenticate::class,
|
||||
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
|
||||
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
|
||||
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
|
||||
'can' => \Illuminate\Auth\Middleware\Authorize::class,
|
||||
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
|
||||
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
|
||||
'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class,
|
||||
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
|
||||
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
|
||||
];
|
||||
}
|
||||
BIN
app/Http/Middleware/._Authenticate.php
Normal file
BIN
app/Http/Middleware/._Authenticate.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._EncryptCookies.php
Normal file
BIN
app/Http/Middleware/._EncryptCookies.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._PreventRequestsDuringMaintenance.php
Normal file
BIN
app/Http/Middleware/._PreventRequestsDuringMaintenance.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._RedirectIfAuthenticated.php
Normal file
BIN
app/Http/Middleware/._RedirectIfAuthenticated.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._TrimStrings.php
Normal file
BIN
app/Http/Middleware/._TrimStrings.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._TrustHosts.php
Normal file
BIN
app/Http/Middleware/._TrustHosts.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._TrustProxies.php
Normal file
BIN
app/Http/Middleware/._TrustProxies.php
Normal file
Binary file not shown.
BIN
app/Http/Middleware/._VerifyCsrfToken.php
Normal file
BIN
app/Http/Middleware/._VerifyCsrfToken.php
Normal file
Binary file not shown.
21
app/Http/Middleware/Authenticate.php
Normal file
21
app/Http/Middleware/Authenticate.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Auth\Middleware\Authenticate as Middleware;
|
||||
|
||||
class Authenticate extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the path the user should be redirected to when they are not authenticated.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @return string|null
|
||||
*/
|
||||
protected function redirectTo($request)
|
||||
{
|
||||
if (! $request->expectsJson()) {
|
||||
return route('login');
|
||||
}
|
||||
}
|
||||
}
|
||||
17
app/Http/Middleware/EncryptCookies.php
Normal file
17
app/Http/Middleware/EncryptCookies.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
|
||||
|
||||
class EncryptCookies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The names of the cookies that should not be encrypted.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
||||
17
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Normal file
17
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
|
||||
|
||||
class PreventRequestsDuringMaintenance extends Middleware
|
||||
{
|
||||
/**
|
||||
* The URIs that should be reachable while maintenance mode is enabled.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
||||
32
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
32
app/Http/Middleware/RedirectIfAuthenticated.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use App\Providers\RouteServiceProvider;
|
||||
use Closure;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class RedirectIfAuthenticated
|
||||
{
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next
|
||||
* @param string|null ...$guards
|
||||
* @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse
|
||||
*/
|
||||
public function handle(Request $request, Closure $next, ...$guards)
|
||||
{
|
||||
$guards = empty($guards) ? [null] : $guards;
|
||||
|
||||
foreach ($guards as $guard) {
|
||||
if (Auth::guard($guard)->check()) {
|
||||
return redirect(RouteServiceProvider::HOME);
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
19
app/Http/Middleware/TrimStrings.php
Normal file
19
app/Http/Middleware/TrimStrings.php
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\TrimStrings as Middleware;
|
||||
|
||||
class TrimStrings extends Middleware
|
||||
{
|
||||
/**
|
||||
* The names of the attributes that should not be trimmed.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
'current_password',
|
||||
'password',
|
||||
'password_confirmation',
|
||||
];
|
||||
}
|
||||
20
app/Http/Middleware/TrustHosts.php
Normal file
20
app/Http/Middleware/TrustHosts.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustHosts as Middleware;
|
||||
|
||||
class TrustHosts extends Middleware
|
||||
{
|
||||
/**
|
||||
* Get the host patterns that should be trusted.
|
||||
*
|
||||
* @return array<int, string|null>
|
||||
*/
|
||||
public function hosts()
|
||||
{
|
||||
return [
|
||||
$this->allSubdomainsOfApplicationUrl(),
|
||||
];
|
||||
}
|
||||
}
|
||||
28
app/Http/Middleware/TrustProxies.php
Normal file
28
app/Http/Middleware/TrustProxies.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Http\Middleware\TrustProxies as Middleware;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class TrustProxies extends Middleware
|
||||
{
|
||||
/**
|
||||
* The trusted proxies for this application.
|
||||
*
|
||||
* @var array<int, string>|string|null
|
||||
*/
|
||||
protected $proxies;
|
||||
|
||||
/**
|
||||
* The headers that should be used to detect proxies.
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $headers =
|
||||
Request::HEADER_X_FORWARDED_FOR |
|
||||
Request::HEADER_X_FORWARDED_HOST |
|
||||
Request::HEADER_X_FORWARDED_PORT |
|
||||
Request::HEADER_X_FORWARDED_PROTO |
|
||||
Request::HEADER_X_FORWARDED_AWS_ELB;
|
||||
}
|
||||
17
app/Http/Middleware/VerifyCsrfToken.php
Normal file
17
app/Http/Middleware/VerifyCsrfToken.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
|
||||
|
||||
class VerifyCsrfToken extends Middleware
|
||||
{
|
||||
/**
|
||||
* The URIs that should be excluded from CSRF verification.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $except = [
|
||||
//
|
||||
];
|
||||
}
|
||||
11
app/LandingPage.php
Normal file
11
app/LandingPage.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class LandingPage extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/Models/._User.php
Normal file
BIN
app/Models/._User.php
Normal file
Binary file not shown.
44
app/Models/User.php
Normal file
44
app/Models/User.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Laravel\Sanctum\HasApiTokens;
|
||||
|
||||
class User extends \TCG\Voyager\Models\User
|
||||
{
|
||||
use HasApiTokens, HasFactory, Notifiable;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $fillable = [
|
||||
'name',
|
||||
'email',
|
||||
'password',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be hidden for serialization.
|
||||
*
|
||||
* @var array<int, string>
|
||||
*/
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'remember_token',
|
||||
];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast.
|
||||
*
|
||||
* @var array<string, string>
|
||||
*/
|
||||
protected $casts = [
|
||||
'email_verified_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
18
app/Page.php
Normal file
18
app/Page.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Page extends Model
|
||||
{
|
||||
public function parts(){
|
||||
return $this->hasMany('App\Part');
|
||||
}
|
||||
|
||||
public function snippets(){
|
||||
return $this->hasMany('App\Snippet');
|
||||
}
|
||||
|
||||
}
|
||||
11
app/Part.php
Normal file
11
app/Part.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Part extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/Product.php
Normal file
11
app/Product.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Product extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/Providers/._AppServiceProvider.php
Normal file
BIN
app/Providers/._AppServiceProvider.php
Normal file
Binary file not shown.
BIN
app/Providers/._AuthServiceProvider.php
Normal file
BIN
app/Providers/._AuthServiceProvider.php
Normal file
Binary file not shown.
BIN
app/Providers/._BroadcastServiceProvider.php
Normal file
BIN
app/Providers/._BroadcastServiceProvider.php
Normal file
Binary file not shown.
BIN
app/Providers/._EventServiceProvider.php
Normal file
BIN
app/Providers/._EventServiceProvider.php
Normal file
Binary file not shown.
BIN
app/Providers/._RouteServiceProvider.php
Normal file
BIN
app/Providers/._RouteServiceProvider.php
Normal file
Binary file not shown.
29
app/Providers/AppServiceProvider.php
Normal file
29
app/Providers/AppServiceProvider.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
}
|
||||
30
app/Providers/AuthServiceProvider.php
Normal file
30
app/Providers/AuthServiceProvider.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
|
||||
class AuthServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The policy mappings for the application.
|
||||
*
|
||||
* @var array<class-string, class-string>
|
||||
*/
|
||||
protected $policies = [
|
||||
// 'App\Models\Model' => 'App\Policies\ModelPolicy',
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any authentication / authorization services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->registerPolicies();
|
||||
|
||||
//
|
||||
}
|
||||
}
|
||||
21
app/Providers/BroadcastServiceProvider.php
Normal file
21
app/Providers/BroadcastServiceProvider.php
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class BroadcastServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
Broadcast::routes();
|
||||
|
||||
require base_path('routes/channels.php');
|
||||
}
|
||||
}
|
||||
42
app/Providers/EventServiceProvider.php
Normal file
42
app/Providers/EventServiceProvider.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
|
||||
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class EventServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The event listener mappings for the application.
|
||||
*
|
||||
* @var array<class-string, array<int, class-string>>
|
||||
*/
|
||||
protected $listen = [
|
||||
Registered::class => [
|
||||
SendEmailVerificationNotification::class,
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any events for your application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if events and listeners should be automatically discovered.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function shouldDiscoverEvents()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
52
app/Providers/RouteServiceProvider.php
Normal file
52
app/Providers/RouteServiceProvider.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use Illuminate\Cache\RateLimiting\Limit;
|
||||
use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
class RouteServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* The path to the "home" route for your application.
|
||||
*
|
||||
* This is used by Laravel authentication to redirect users after login.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public const HOME = '/home';
|
||||
|
||||
/**
|
||||
* Define your route model bindings, pattern filters, etc.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
$this->configureRateLimiting();
|
||||
|
||||
$this->routes(function () {
|
||||
Route::middleware('api')
|
||||
->prefix('api')
|
||||
->group(base_path('routes/api.php'));
|
||||
|
||||
Route::middleware('web')
|
||||
->group(base_path('routes/web.php'));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the rate limiters for the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function configureRateLimiting()
|
||||
{
|
||||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip());
|
||||
});
|
||||
}
|
||||
}
|
||||
11
app/Recipe.php
Normal file
11
app/Recipe.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Recipe extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/RetailGroup.php
Normal file
11
app/RetailGroup.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class RetailGroup extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/Retailregion.php
Normal file
11
app/Retailregion.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Retailregion extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/SalesRegion.php
Normal file
11
app/SalesRegion.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class SalesRegion extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/Slider.php
Normal file
11
app/Slider.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Slider extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/Snippet.php
Normal file
11
app/Snippet.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Snippet extends Model
|
||||
{
|
||||
|
||||
}
|
||||
11
app/Store.php
Normal file
11
app/Store.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
|
||||
class Store extends Model
|
||||
{
|
||||
|
||||
}
|
||||
BIN
app/View/._Components
Normal file
BIN
app/View/._Components
Normal file
Binary file not shown.
BIN
app/View/Components/._ContentPart.php
Normal file
BIN
app/View/Components/._ContentPart.php
Normal file
Binary file not shown.
BIN
app/View/Components/._ContentSnippet.php
Normal file
BIN
app/View/Components/._ContentSnippet.php
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue