This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Actions; | |
use App\Models\Team; | |
use App\Models\User; | |
class DeleteTeamAction | |
{ | |
public function handle(User $user, Team $team): void |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Osnovni Koncepti Redux-a | |
Store: Centralno skladište koje drži cijelo stanje aplikacije. U Redux aplikaciji postoji samo jedan store. | |
Actions (Akcije): Objekti koji predstavljaju događaje koji se dešavaju u aplikaciji. Svaka akcija mora imati type svojstvo koje opisuje vrstu događaja, a može imati i dodatne podatke koji su potrebni za ažuriranje stanja. | |
Reducers (Reduceri): Funkcije koje definiraju kako se stanje aplikacije mijenja kao odgovor na akcije. Reduceri su čiste funkcije koje uzimaju prethodno stanje i akciju kao argumente i vraćaju novo stanje. | |
Dispatch: Metod za slanje akcija u store. Kada se akcija dispačira, Redux poziva odgovarajuće reducere i ažurira stanje u skladu s akcijom. | |
Reduceri | |
Reduceri su ključni dio Redux-a jer određuju kako se stanje aplikacije mijenja kao odgovor na akcije. Oni su čiste funkcije, što znači da za iste ulazne vrijednosti uvijek vraćaju iste izlazne vrijednosti i nemaju nuspojava. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Druga radionica - React.js [Cortex Academy] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prva radionica - React.js [Cortex Academy] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add these lines inside `settings.json` file: | |
// VS Code Optimizations | |
"breadcrumbs.enabled": false, | |
"editor.codeLens": false, | |
"search.searchOnType": false, | |
"editor.minimap.enabled": false, | |
"terminal.integrated.gpuAcceleration": "on", | |
"telemetry.enableCrashReporter": false, | |
"telemetry.enableTelemetry": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU nano 7.2 000-default-le-ssl.conf | |
<IfModule mod_ssl.c> | |
<VirtualHost *:443> | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/html/academix-learning-system-backend/public | |
<Directory /var/www/html/academix-learning-system-backend/public> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"JSX boilerplate": { | |
"prefix": "jsx", | |
"body": [ | |
"import './App.css';", | |
"", | |
"function ${1:ComponentName}() {", | |
" return (", | |
" <div>", | |
" $2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Unordered List with List Items": { | |
"prefix": "ull", | |
"body": [ | |
"<ul>", | |
"\t<li><a>${1}</a></li>", | |
"\t<li><a></a></li>", | |
"\t<li><a></a></li>", | |
"</ul>" | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
/* | |
|-------------------------------------------------------------------------- | |
| Validation Language Lines | |
|-------------------------------------------------------------------------- | |
| | |
| The following language lines contain the default error messages used by |
NewerOlder