Update after review + README
This commit is contained in:
parent
3d067ed921
commit
4a3ff09b73
9 changed files with 65 additions and 117 deletions
128
README.md
128
README.md
|
|
@ -1,78 +1,62 @@
|
|||
<p align="center"><img src="https://res.cloudinary.com/dtfbvvkyp/image/upload/v1566331377/laravel-logolockup-cmyk-red.svg" width="400"></p>
|
||||
# BOGT / Tracabilité Loué
|
||||
|
||||
<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://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
|
||||
</p>
|
||||
## Installation
|
||||
```
|
||||
composer install
|
||||
cp .env.example .env
|
||||
php artisan key:generate
|
||||
php artisan storage:link
|
||||
```
|
||||
|
||||
## About Laravel
|
||||
Éditez le fichier .env puis :
|
||||
```
|
||||
php artisan migrate
|
||||
```
|
||||
|
||||
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:
|
||||
Front :
|
||||
```
|
||||
npm install && npm run prod
|
||||
```
|
||||
Pour créer un compte admin :
|
||||
```
|
||||
php artisan user:create
|
||||
```
|
||||
|
||||
- [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).
|
||||
## Commande à mettre dans la crontab toutes les minutes en PROD
|
||||
```
|
||||
php artisan schedule:run
|
||||
```
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
## Données
|
||||
Pour synchroniser les aliments :
|
||||
```
|
||||
php artisan cafel:food
|
||||
```
|
||||
Pour synchroniser les données BEA (volaille) :
|
||||
```
|
||||
php artisan cafel:bea_vol
|
||||
```
|
||||
Pour synchroniser les mises en place (oeuf) :
|
||||
```
|
||||
php artisan cafel:mep_egg
|
||||
```
|
||||
Pour synchroniser les éleveurs (oeuf) :
|
||||
```
|
||||
php artisan cafel:breeder_egg
|
||||
```
|
||||
Pour synchroniser les éleveurs (volaille) :
|
||||
```
|
||||
php artisan cafel:breeder_poultry
|
||||
```
|
||||
Pour importer les XML (oeuf) :
|
||||
```
|
||||
php artisan xml:egg
|
||||
```
|
||||
Pour importer les XML (volaille) :
|
||||
```
|
||||
php artisan xml:poultry
|
||||
```
|
||||
|
||||
## 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 1500 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).
|
||||
|
||||
- **[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)**
|
||||
- **[British Software Development](https://www.britishsoftware.co)**
|
||||
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
|
||||
- **[DevSquad](https://devsquad.com)**
|
||||
- [UserInsights](https://userinsights.com)
|
||||
- [Fragrantica](https://www.fragrantica.com)
|
||||
- [SOFTonSOFA](https://softonsofa.com/)
|
||||
- [User10](https://user10.com)
|
||||
- [Soumettre.fr](https://soumettre.fr/)
|
||||
- [CodeBrisk](https://codebrisk.com)
|
||||
- [1Forge](https://1forge.com)
|
||||
- [TECPRESSO](https://tecpresso.co.jp/)
|
||||
- [Runtime Converter](http://runtimeconverter.com/)
|
||||
- [WebL'Agence](https://weblagence.com/)
|
||||
- [Invoice Ninja](https://www.invoiceninja.com)
|
||||
- [iMi digital](https://www.imi-digital.de/)
|
||||
- [Earthlink](https://www.earthlink.ro/)
|
||||
- [Steadfast Collective](https://steadfastcollective.com/)
|
||||
- [We Are The Robots Inc.](https://watr.mx/)
|
||||
- [Understand.io](https://www.understand.io/)
|
||||
- [Abdel Elrafa](https://abdelelrafa.com)
|
||||
- [Hyper Host](https://hyper.host)
|
||||
- [Appoly](https://www.appoly.co.uk)
|
||||
- [OP.GG](https://op.gg)
|
||||
|
||||
## 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).
|
||||
## TODO
|
||||
- Mettre analytics dans cookie notice
|
||||
- Cacher la colonne Code EDE dans le cas du filtrage sur volaille (/bo/eleveurs)
|
||||
|
|
@ -25,14 +25,4 @@ class LoginController extends Controller
|
|||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get user name column
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function username(): string
|
||||
{
|
||||
return 'username';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,10 +26,8 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
// * LOCAL HTTPS FIX
|
||||
if (!in_array(config('app.env'), ['local', 'testing'])) {
|
||||
URL::forceScheme('https');
|
||||
}
|
||||
URL::forceScheme('https');
|
||||
|
||||
// * HA PROXY FIX
|
||||
App::singleton('clientIp', function () {
|
||||
if (config('app.env') === 'local') {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateAlimentsTable extends Migration
|
||||
|
|
@ -14,30 +12,8 @@ class CreateAlimentsTable extends Migration
|
|||
*/
|
||||
public function up()
|
||||
{
|
||||
DB::statement(
|
||||
'ALTER TABLE `aliments` CHANGE COLUMN `id` `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT FIRST;'
|
||||
);
|
||||
if (!Schema::hasTable('aliments')) {
|
||||
Schema::create('aliments', function (Blueprint $table) {
|
||||
$table->id();
|
||||
|
||||
$table->string('code_lot', 50)->nullable()
|
||||
->comment('Code du lot d\'aliment');
|
||||
$table->date('date_livraison')->nullable()
|
||||
->comment('Date de livraison de l\'aliment');
|
||||
$table->string('type_aliment', 50)->nullable()
|
||||
->comment('le type de l\'aliment');
|
||||
});
|
||||
} else {
|
||||
Schema::table('aliments', function (Blueprint $table) {
|
||||
$table->string('code_lot', 50)->nullable()
|
||||
->comment('Code du lot d\'aliment')->change();
|
||||
$table->date('date_livraison')->nullable()
|
||||
->comment('Date de livraison de l\'aliment')->change();
|
||||
$table->string('type_aliment', 50)->nullable()
|
||||
->comment('le type de l\'aliment')->change();
|
||||
});
|
||||
} //end if
|
||||
Schema::dropIfExists('aliments');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
package-lock.json
generated
2
package-lock.json
generated
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "bogt",
|
||||
"name": "srcs",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@
|
|||
@csrf
|
||||
|
||||
<div class="row mb-3">
|
||||
<label for="username" class="col-md-4 col-form-label text-md-end">{{ __('Adresse Email') }}</label>
|
||||
<label for="email" class="col-md-4 col-form-label text-md-end">{{ __('Adresse Email') }}</label>
|
||||
|
||||
<div class="col-md-6">
|
||||
<input id="username" type="text" class="form-control @error('username') is-invalid @enderror" name="username" value="{{ old('username') }}" required autofocus>
|
||||
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autofocus>
|
||||
|
||||
@error('username')
|
||||
@error('email')
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
</a>
|
||||
|
||||
<div class="dropdown-menu dropdown-menu-end" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item" href="{{ route('logout') }}"
|
||||
<a class="dropdown-item" href="{{ route('bo.logout') }}"
|
||||
onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
|
||||
{{ __('Déconnexion') }}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
@endphp
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
<form id="searchForm" action="{{ request()->url() }}">
|
||||
<form id="searchForm" action="{{ url()->current() }}">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="searchField">{{ $searchFields }}</label>
|
||||
|
|
|
|||
0
storage/tmp/.gitkeep
Normal file
0
storage/tmp/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue