This file contains hidden or 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\Repositories; | |
use Illuminate\Support\Str; | |
class Image { | |
public function actionImage($nameOldImage = null, $method = null) | |
{ | |
if($method = "DELETE_IMAGE"){ |
This file contains hidden or 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
// Use connect to use Store and Dispatch | |
import { connect } from'react-redux' | |
// Use todoAction from todoAction.js | |
import { addTodo } from './todoAction' | |
/* | |
use this syntax to access the store => this.state.todos | |
component(this.state.todos) |
This file contains hidden or 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
{ | |
"posts": [ | |
{ | |
"userId": 1, | |
"id": 1, | |
"title": "Echo Foxtrot Golf Hotel Lima Delta Bravo November Alfa Tango Zulu Juliett Papa Romeo Kilo Mike Uniform Quebec", | |
"body": "morbi non lectus aliquam sit amet diam in magna bibendum imperdiet nullam orci pede venenatis", | |
"likes": 0, | |
"dislikes": 0 | |
}, |
NewerOlder