Próbwa naprawy web2

This commit is contained in:
czup 2020-02-01 02:14:09 +01:00
parent 742fc3f7fe
commit fc50bcfc2a
3 changed files with 5 additions and 5 deletions

View File

@ -195,7 +195,7 @@ class documentCreators extends Fpdf
exit;
}
public function createSingleUnitPDF(){
public function createSingleUnitPDF2(){
$fireStation = fireStation::find(auth()->user()->fireStationID);
$pdf = new AlphaPDF();
$fill = false;

View File

@ -160,7 +160,7 @@ class fireStationController extends Controller
if (auth()->user() != null && auth()->user()->fireStationID != null) {
$request = request();
$test = new documentCreators();
$test->createSingleUnitPDF($request->fireStationID);
$test->createSingleUnitPDF2($request->fireStationID);
}
}
}

View File

@ -57,7 +57,7 @@ Route::post('/strazacy', 'fireFightersController@store');
Route::get('/strazacy/edit/{id}', 'fireFightersController@editForm');
Route::post('/strazacy/edit', 'fireFightersController@update');
Route::post('/strazacy/pdf/single/', 'fireFightersController@createSingleFireFighterPDF');
Route::post('/strazacy/pdf/all/', 'fireFightersController@CreateAllFireFightersPDF');
Route::post('/strazacy/pdf/all', 'fireFightersController@CreateAllFireFightersPDF');
Route::post('strazacy/activate', 'fireFightersController@activate');
Route::post('strazacy/deactivate', 'fireFightersController@deactivate');
@ -71,7 +71,7 @@ Route::get('/jednostka', 'fireStationController@create');
Route::post('/jednostka', 'fireStationController@store');
Route::get('/jednostka/edit', 'fireStationController@editForm');
Route::post('/jednostka/edit', 'fireStationController@update');
Route::post('/jednostka/pdf/single/', 'fireStationController@createSingleUnitPDF');
Route::post('/jednostka/pdf/single', 'fireStationController@createSingleUnitPDF');
Route::get('/jednostka/getcounties/{id}','DataController@getCounties');
Route::get('/jednostka/getcommunities/{id}','DataController@getCommunities');