Photo by Sung Jin Cho on Unsplash
$path = \Storage::disk('local')->path('data.csv');$file = new \File($path);\Storage::disk('digitalocean')->putFile('archive', $file);
Call to undefined method Illuminate\Support\Facades\File::hashName() at vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php:259

Photo by Brian McGowan on Unsplash
Movie::search('Star Wars')->get();
Movie::search('Star Wars AND year >1990')->get();

Here’s how


Photo by Joshua Aragon on Unsplash


Step 1. Include all necessary assets on our page

<head>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<style>
[x-cloak] {
display: none !important;
}
</style>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.2/dist/alpine.min.js" defer></script>
</head>

Step 2. Let’s build the basic HTML structure

<div>…


Photo by Piron Guillaume on Unsplash


Photo by Giammarco Boscaro on Unsplash
children = [
# Start the Ecto repository
# Myapp.Repo,
...
]
# Configure your database
# config :myapp, Myapp.Repo,
# username: "",
# password: "",
# database: "myapp_dev",
# hostname: "localhost",
# show_sensitive_data_on_connection_error: true,
# pool_size: 10

Photo by Joshua Aragon on Unsplash

Commands

$ screen -S <command>
$ screen -ls
$ screen <session_name>
$ screen -rd <session_name>

Shortcuts


Photo by Sam Moqadam on Unsplash

Photo by Leif Christoph Gottwald on Unsplash
❯ mix phx.server[info] Running SampleWeb.Endpoint with cowboy 2.8.0 at 0.0.0.0:4000 (http)
[info] Access SampleWeb.Endpoint at http://localhost:4000
webpack is watching the files…[hardsource:3aabe17a] Writing new cache 3aabe17a...
[hardsource:3aabe17a] Tracking node dependencies with: package.json, node_modules/*.
Hash: 0efe8912134b66bc238c
Version: webpack 4.41.5
Time: 1806ms
Built at: 03/05/2021 10:42:01 AM
Asset Size…


Photo by Jeremy Bishop on Unsplash
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js" defer></script>
<div>
<button>Save</button>
</div>
<div x-data="{ buttonDisabled: false }">
<button x-on:click="buttonDisabled = true" x-bind:disabled="buttonDisabled">Save</button>
</div>

Jian Jye

I write about Laravel, AlpineJS, and occasionally Elixir + Phoenix.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store