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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Http; | |
class GenerateTypes extends Command | |
{ |
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
import { View, FlatList } from "react-native"; | |
import React, { useEffect, useRef } from "react"; | |
import postsApi, { | |
postsAdapters, | |
postsSelectors, | |
useLazyFetchPostsQuery | |
} from "../../state/apis/postsApi"; | |
export default function PostsScreen() { | |
const currentPage = useRef(1); |
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
Buenas! Buenas! | |
I had to deal with this issue while installing Valet+ on two different computers running macOS Mojave so I thought I'd share my recipe. | |
⚠️ Make sure to back-up your database if you already have data in it. | |
First, uninstall MySQL | |
brew uninstall mysql | |
brew uninstall mysql@5.7 |
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
@foreach ($prototypes as $message) | |
<tr> | |
<td> | |
{{ $loop->iteration + (( $prototypes->currentPage() - 1 ) * $prototypes->perPage()) }} | |
</td> | |
</tr> | |
@endforeach |
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
Artisan::command("permissions", function () { | |
exec ("find ". base_path() ." -type d -exec chmod 0755 {} +"); | |
exec ("find ". base_path() ." -type f -exec chmod 0644 {} +"); | |
$this->comment("Done Setting Permisions"); | |
})->describe("Set root permissions"); |
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
vagrant up && vagrant ssh | |
cp /etc/nginx/ssl/ca.homestead.homestead.crt /home/vagrant/{Projects Folder} | |
On Mac, Open terminal and cd into Projects Folder then | |
sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain ca.homestead.homestead.crt | |
On Windows, Import certificate as trusted into chrome or preferred browser |
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
# | |
# REQUIRES: | |
# - server (the forge server instance) | |
# - event (the forge event instance) | |
# - sudo_password (random password for sudo) | |
# - db_password (random password for database user) | |
# - callback (the callback URL) | |
# |