Personal Notes Parmi

LARAVELANEKAKEBUTUHAN

{
    ( alias;
    eval ${which_declare} ) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
[anekakeb@srv ~]$
[anekakeb@srv ~]$ groups
anekakeb
[anekakeb@srv ~]$ groups --help
Usage: groups [OPTION]... [USERNAME]...
Print group memberships for each USERNAME or, if no USERNAME is specified, for
the current process (which may differ if the groups database has changed).
      --help     display this help and exit
      --version  output version information and exit

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/groups>
or available locally via: info '(coreutils) groups invocation'
[anekakeb@srv ~]$ ls --help
Usage: ls [OPTION]... [FILE]...
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.
  -a, --all                  do not ignore entries starting with .
  -A, --almost-all           do not list implied . and ..
      --author               with -l, print the author of each file
  -b, --escape               print C-style escapes for nongraphic characters
      --block-size=SIZE      with -l, scale sizes by SIZE when printing them;
                               e.g., '--block-size=M'; see SIZE format below
  -B, --ignore-backups       do not list implied entries ending with ~
  -c                         with -lt: sort by, and show, ctime (time of last
                               modification of file status information);
                               with -l: show ctime and sort by name;
                               otherwise: sort by ctime, newest first
  -C                         list entries by columns
      --color[=WHEN]         colorize the output; WHEN can be 'always' (default
                               if omitted), 'auto', or 'never'; more info below
  -d, --directory            list directories themselves, not their contents
  -D, --dired                generate output designed for Emacs' dired mode
  -f                         do not sort, enable -aU, disable -ls --color
  -F, --classify             append indicator (one of */=>@|) to entries
      --file-type            likewise, except do not append '*'
      --format=WORD          across -x, commas -m, horizontal -x, long -l,
                               single-column -1, verbose -l, vertical -C
      --full-time            like -l --time-style=full-iso
  -g                         like -l, but do not list owner
      --group-directories-first
                             group directories before files;
                               can be augmented with a --sort option, but any
                               use of --sort=none (-U) disables grouping
  -G, --no-group             in a long listing, don't print group names
  -h, --human-readable       with -l and -s, print sizes like 1K 234M 2G etc.
      --si                   likewise, but use powers of 1000 not 1024
  -H, --dereference-command-line
                             follow symbolic links listed on the command line
      --dereference-command-line-symlink-to-dir
                             follow each command line symbolic link
                               that points to a directory
      --hide=PATTERN         do not list implied entries matching shell PATTERN
                               (overridden by -a or -A)
      --hyperlink[=WHEN]     hyperlink file names; WHEN can be 'always'
                               (default if omitted), 'auto', or 'never'
      --indicator-style=WORD  append indicator with style WORD to entry names:
                               none (default), slash (-p),
                               file-type (--file-type), classify (-F)
  -i, --inode                print the index number of each file
  -I, --ignore=PATTERN       do not list implied entries matching shell PATTERN
  -k, --kibibytes            default to 1024-byte blocks for disk usage;
                               used only with -s and per directory totals
  -l                         use a long listing format
  -L, --dereference          when showing file information for a symbolic
                               link, show information for the file the link
                               references rather than for the link itself
  -m                         fill width with a comma separated list of entries
  -n, --numeric-uid-gid      like -l, but list numeric user and group IDs
  -N, --literal              print entry names without quoting
  -o                         like -l, but do not list group information
  -p, --indicator-style=slash
                             append / indicator to directories
  -q, --hide-control-chars   print ? instead of nongraphic characters
      --show-control-chars   show nongraphic characters as-is (the default,
                               unless program is 'ls' and output is a terminal)
  -Q, --quote-name           enclose entry names in double quotes
      --quoting-style=WORD   use quoting style WORD for entry names:
                               literal, locale, shell, shell-always,
                               shell-escape, shell-escape-always, c, escape
                               (overrides QUOTING_STYLE environment variable)
  -r, --reverse              reverse order while sorting
  -R, --recursive            list subdirectories recursively
  -s, --size                 print the allocated size of each file, in blocks
  -S                         sort by file size, largest first
      --sort=WORD            sort by WORD instead of name: none (-U), size (-S),
                               time (-t), version (-v), extension (-X)
      --time=WORD            change the default of using modification times;
                               access time (-u): atime, access, use;
                               change time (-c): ctime, status;
                               birth time: birth, creation;
                             with -l, WORD determines which time to show;
                             with --sort=time, sort by WORD (newest first)
      --time-style=TIME_STYLE  time/date format with -l; see TIME_STYLE below
  -t                         sort by time, newest first; see --time
  -T, --tabsize=COLS         assume tab stops at each COLS instead of 8
  -u                         with -lt: sort by, and show, access time;
                               with -l: show access time and sort by name;
                               otherwise: sort by access time, newest first
  -U                         do not sort; list entries in directory order
  -v                         natural sort of (version) numbers within text
  -w, --width=COLS           set output width to COLS.  0 means no limit
  -x                         list entries by lines instead of by columns
  -X                         sort alphabetically by entry extension
  -Z, --context              print any security context of each file
  -1                         list one file per line.  Avoid '\n' with -q or -b
      --help     display this help and exit
      --version  output version information and exit

The SIZE argument is an integer and optional unit (example: 10K is 10*1024).
Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000).
Binary prefixes can be used, too: KiB=K, MiB=M, and so on.

The TIME_STYLE argument can be full-iso, long-iso, iso, locale, or +FORMAT.
FORMAT is interpreted like in date(1).  If FORMAT is FORMAT1<newline>FORMAT2,
then FORMAT1 applies to non-recent files and FORMAT2 to recent files.
TIME_STYLE prefixed with 'posix-' takes effect only outside the POSIX locale.
Also the TIME_STYLE environment variable sets the default style to use.

Using color to distinguish file types is disabled both by default and
with --color=never.  With --color=auto, ls emits color codes only when
standard output is connected to a terminal.  The LS_COLORS environment
variable can change the settings.  Use the dircolors command to set it.

Exit status:
 0  if OK,
 1  if minor problems (e.g., cannot access subdirectory),
 2  if serious trouble (e.g., cannot access command-line argument).

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Full documentation <https://www.gnu.org/software/coreutils/ls>
or available locally via: info '(coreutils) ls invocation'
[anekakeb@srv ~]$ php -m
[PHP Modules]
bcmath
bz2
calendar
clos_ssa
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
i360
iconv
igbinary
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
memcached
msgpack
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
random
readline
redis
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
sodium
SourceGuardian
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]
SourceGuardian
the ionCube PHP Loader

[anekakeb@srv ~]$ composer -v
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 2.9.7 2026-04-14 13:31:52

Usage:
  command [options] [arguments]

Options:
  -h, --help                     Display help for the given command. When no command is given display help for the list command
  -q, --quiet                    Do not output any message
  -V, --version                  Display this application version
      --ansi|--no-ansi           Force (or disable --no-ansi) ANSI output
  -n, --no-interaction           Do not ask any interactive question
      --profile                  Display timing and memory usage information
      --no-plugins               Whether to disable plugins.
      --no-scripts               Skips the execution of all scripts defined in composer.json file.
  -d, --working-dir=WORKING-DIR  If specified, use the given directory as working directory.
      --no-cache                 Prevent use of the cache
  -v|vv|vvv, --verbose           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  about                Shows a short information about Composer
  archive              Creates an archive of this composer package
  audit                Checks for security vulnerability advisories for installed packages
  browse               [home] Opens the package's repository URL or homepage in your browser
  bump                 Increases the lower limit of your composer.json requirements to the currently installed versions
  check-platform-reqs  Check that platform requirements are satisfied
  clear-cache          [clearcache|cc] Clears composer's internal package cache
  completion           Dump the shell completion script
  config               Sets config options
  create-project       Creates new project from a package into given directory
  depends              [why] Shows which packages cause the given package to be installed
  diagnose             Diagnoses the system to identify common errors
  dump-autoload        [dumpautoload] Dumps the autoloader
  exec                 Executes a vendored binary/script
  fund                 Discover how to help fund the maintenance of your dependencies
  global               Allows running commands in the global composer dir ($COMPOSER_HOME)
  help                 Display help for a command
  init                 Creates a basic composer.json file in current directory
  install              [i] Installs the project dependencies from the composer.lock file if present, or falls back on the composer.json
  licenses             Shows information about licenses of dependencies
  list                 List commands
  outdated             Shows a list of installed packages that have updates available, including their latest version
  prohibits            [why-not] Shows which packages prevent the given package from being installed
  reinstall            Uninstalls and reinstalls the given package names
  remove               [rm|uninstall] Removes a package from the require or require-dev
  repository           [repo] Manages repositories
  require              [r] Adds required packages to your composer.json and installs them
  run-script           [run] Runs the scripts defined in composer.json
  search               Searches for packages
  self-update          [selfupdate] Updates composer.phar to the latest version
  show                 [info] Shows information about packages
  status               Shows a list of locally modified packages
  suggests             Shows package suggestions
  update               [u|upgrade] Updates your dependencies to the latest version according to composer.json, and updates the composer.lock file
  validate             Validates a composer.json and composer.lock
[anekakeb@srv ~]$ nove -v
bash: nove: command not found
[anekakeb@srv ~]$ node -v
bash: node: command not found
[anekakeb@srv ~]$ node
bash: node: command not found
[anekakeb@srv ~]$ npm -v
bash: npm: command not found
[anekakeb@srv ~]$ git -v
git version 2.48.2
[anekakeb@srv ~]$ crontab -l
MAILTO=""
SHELL="/bin/bash"
3,29,36,45 * * * * /opt/alt/php83/usr/bin/php /home/anekakeb/myfile.anekakebutuhan.com/cron.php /home/anekakeb/myfile.anekakebutuhan.com/config.php

[anekakeb@srv ~]$ find / -maxdepth 2 -name "composer.phar"
find: ‘/root’: Permission denied
[anekakeb@srv ~]$ find ~ -maxdepth 5 -name "composer.phar"
[anekakeb@srv ~]$ ls -la ~ | grep -E "\.(nvm|npm|node)"
drwxr-xr-x  5 anekakeb anekakeb     90 May 15 00:09 .npm
[anekakeb@srv ~]$ cd la
lab.anekakebutuhan.com/     laravel.anekakebutuhan.com/
[anekakeb@srv ~]$ cd laravel.anekakebutuhan.com/
[anekakeb@srv laravel.anekakebutuhan.com]$ pwd
/home/anekakeb/laravel.anekakebutuhan.com
[anekakeb@srv laravel.anekakebutuhan.com]$ ls -la
total 528
drwxr-xr-x  15 anekakeb anekakeb   4096 May 12 01:48 .
drwx--x--x  64 anekakeb anekakeb   4096 Jun  3 09:28 ..
drwxr-xr-x   6 anekakeb anekakeb     61 May 12 01:39 app
-rwxr-xr-x   1 anekakeb anekakeb    425 Apr 30 11:32 artisan
drwxr-xr-x   3 anekakeb anekakeb     55 Apr 30 11:32 bootstrap
drwxr-xr-x   2 anekakeb anekakeb      6 May 11 09:09 cgi-bin
-rw-r--r--   1 anekakeb anekakeb   2952 May 12 23:04 composer.json
-rw-r--r--   1 anekakeb anekakeb 314230 May 12 23:04 composer.lock
drwxr-xr-x   2 anekakeb anekakeb   4096 May 12 23:04 config
drwxr-xr-x   5 anekakeb anekakeb     97 May 12 01:28 database
-rw-r--r--   1 anekakeb anekakeb    275 Apr 30 11:32 .editorconfig
-rw-r--r--   1 anekakeb anekakeb   1162 May 12 01:37 .env
-rw-r--r--   1 anekakeb anekakeb   1086 Apr 30 11:32 .env.example
-rw-r--r--   1 anekakeb anekakeb   4410 May 12 23:19 error_log
-rw-r--r--   1 anekakeb anekakeb    186 Apr 30 11:32 .gitattributes
-rw-r--r--   1 anekakeb anekakeb    341 Apr 30 11:32 .gitignore
-rw-r--r--   1 anekakeb anekakeb    612 May 11 09:09 .htaccess
drwxr-xr-x 141 anekakeb anekakeb   8192 May 12 01:51 node_modules
-rw-r--r--   1 anekakeb anekakeb     31 Apr 30 11:32 .npmrc
-rw-r--r--   1 anekakeb anekakeb    575 May 12 01:51 package.json
-rw-r--r--   1 anekakeb anekakeb 117163 May 12 01:51 package-lock.json
-rw-r--r--   1 anekakeb anekakeb    374 May 11 09:09 php.ini
-rw-r--r--   1 anekakeb anekakeb   1322 Apr 30 11:32 phpunit.xml
-rw-r--r--   1 anekakeb anekakeb     93 May 12 01:39 postcss.config.js
drwxr-xr-x   3 anekakeb anekakeb     90 May 12 01:51 public
-rw-r--r--   1 anekakeb anekakeb   3700 Apr 30 11:32 README.md
drwxr-xr-x   5 anekakeb anekakeb     40 Apr 30 11:32 resources
drwxr-xr-x   2 anekakeb anekakeb     71 May 12 22:58 routes
drwxr-xr-x   5 anekakeb anekakeb     46 Apr 30 11:32 storage
-rw-r--r--   1 anekakeb anekakeb    541 May 12 01:39 tailwind.config.js
drwxr-xr-x   4 anekakeb anekakeb     53 Apr 30 11:32 tests
-rw-r--r--   1 anekakeb anekakeb    374 May 11 09:09 .user.ini
drwxr-xr-x  39 anekakeb anekakeb   4096 May 12 23:04 vendor
-rw-r--r--   1 anekakeb anekakeb    263 May 12 01:39 vite.config.js
drwxr-xr-x   3 anekakeb anekakeb     28 May 11 09:11 .well-known
[anekakeb@srv laratail -n 20 storage/logs/laravel.logsrv ~]$ tail -n 20 storage/logs/laravel.log
tail: cannot open 'storage/logs/laravel.log' for reading: No such file or directory
[anekakeb@srv ~]$ tail -n 20 storage/logs/laravel.log
tail: cannot open 'storage/logs/laravel.log' for reading: No such file or directory
[anekakeb@srv ~]$ find ~ -type d -name "://anekakebutuhan.com"
find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time.  Did you mean ‘-wholename’?
[anekakeb@srv ~]$ find ~ -type d -name "anekakebutuhan.com"
/home/anekakeb/tmp/analog/ssl/anekakebutuhan.com
/home/anekakeb/tmp/webalizer/ssl/anekakebutuhan.com
/home/anekakeb/etc/anekakebutuhan.com
/home/anekakeb/mail/anekakebutuhan.com
[anekakeb@srv ~]$ find ~ -maxdepth 4 -name "artisan"
/home/anekakeb/laravel.anekakebutuhan.com/artisan
/home/anekakeb/test.anekakebutuhan.com/artisan
[anekakeb@srv ~]$ tail -n 20 storage/logs/laravel.log
tail: cannot open 'storage/logs/laravel.log' for reading: No such file or directory
[anekakeb@srv ~]$ php artisan about
Could not open input file: artisan
[anekakeb@srv ~]$ cd laravel.anekakebutuhan.com/
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan about

  Environment ................................................................
  Application Name ................................................... Laravel
  Laravel Version ..................................................... 13.8.0
  PHP Version ......................................................... 8.3.30
  Composer Version ..................................................... 2.9.7
  Environment .......................................................... local
  Debug Mode ......................................................... ENABLED
  URL .............................................................. localhost
  Maintenance Mode ....................................................... OFF
  Timezone ............................................................... UTC
  Locale .................................................................. en

  Cache ......................................................................
  Config .......................................................... NOT CACHED
  Events .......................................................... NOT CACHED
  Routes .......................................................... NOT CACHED
  Views ............................................................... CACHED

  Drivers ....................................................................
  Broadcasting ........................................................... log
  Cache ............................................................. database
  Database ............................................................. mysql
  Logs ........................................................ stack / single
  Mail ................................................................... log
  Queue ............................................................. database
  Session ........................................................... database

  Storage ....................................................................
  public/storage .................................................. NOT LINKED

[anekakeb@srv laravel.anekakebutuhan.com]$ tail -n 20 storage/logs/laravel.log
#61 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#62 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#63 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Http\\Middleware\\ValidatePostSize->handle()
#64 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(109): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#65 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#66 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(61): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#67 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Http\\Middleware\\HandleCors->handle()
#68 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(58): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#69 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#70 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/InvokeDeferredCallbacks.php(22): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#71 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Foundation\\Http\\Middleware\\InvokeDeferredCallbacks->handle()
#72 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePathEncoding.php(28): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#73 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(219): Illuminate\\Http\\Middleware\\ValidatePathEncoding->handle()
#74 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#75 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\\Pipeline\\Pipeline->then()
#76 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#77 /home/anekakeb/laravel.anekakebutuhan.com/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(1220): Illuminate\\Foundation\\Http\\Kernel->handle()
#78 /home/anekakeb/laravel.anekakebutuhan.com/public/index.php(20): Illuminate\\Foundation\\Application->handleRequest()
#79 {main}
"}
[anekakeb@srv laravel.anekakebutuhan.com]$
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan storage:link

   INFO  The [public/storage] link has been connected to [storage/app/public].

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan optimize:clear

   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.38ms DONE
  cache ......................................................... 14.89ms DONE
  compiled ....................................................... 0.96ms DONE
  events ......................................................... 0.45ms DONE
  routes ......................................................... 0.41ms DONE
  views .......................................................... 5.93ms DONE

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear

   INFO  Route cache cleared successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan optimize:clear

   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.21ms DONE
  cache ......................................................... 15.05ms DONE
  compiled ....................................................... 1.07ms DONE
  events ......................................................... 0.58ms DONE
  routes ......................................................... 0.55ms DONE
  views .......................................................... 7.50ms DONE
                                           php artisan route:clear && php artisan optimize:clear
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear && php artisan optimize:clear
   INFO  Route cache cleared successfully.


   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.37ms DONE
  cache ......................................................... 11.65ms DONE
  compiled ....................................................... 1.36ms DONE
  events ......................................................... 0.60ms DONE
  routes ......................................................... 0.60ms DONE
  views .......................................................... 8.20ms DONE
                                           php artisan route:list | grep profile
  GET|HEAD        profile .......... profile.edit › UserProfileController@edit
  PUT             profile profile.update › UserProfileController@updateProfile
  PUT             profile/password profile.php artisan route:clear && php artisan config:clear && php artisan optimize:clear
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear && php artisan config:clear && php artisan optimize:clear
   INFO  Route cache cleared successfully.


   INFO  Configuration cache cleared successfully.


   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.33ms DONE
  cache ......................................................... 27.01ms DONE
  compiled ....................................................... 1.42ms DONE
  events ......................................................... 0.88ms DONE
  routes ......................................................... 0.83ms DONE
  views ......................................................... 13.43ms DONE

[anekakeb@srv laraphp artisan route:clear && php artisan optimize:clearn route:clear && php artisan optimize:clear
Could not open input file: artisan
[anekakeb@srv ~]$ cd
[anekakeb@srv ~]$ pwd
/home/anekakeb
[anekakeb@srv ~]$ cd laravel.anekakebutuhan.com/
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear && php artisan optimize:clear

   ParseError

  Unclosed '{' on line 42

  at routes/web.php:63
     59▕     Route::delete('/profile', [App\Http\Controllers\UserProfileController::class, 'destroy'])->name('profile.destroy');
     60▕
     61▕ });
     62▕
  ➜  63▕

      +19 vendor frames

  20  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()
      +6 vendor frames

  27  artisan:16
      Illuminate\Foundation\Application::handleCommand()

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear && php artisan optimize:clear

   INFO  Route cache cleared successfully.


   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.43ms DONE
  cache ......................................................... 16.88ms DONE
  compiled ....................................................... 1.36ms DONE
  events ......................................................... 0.77ms DONE
  routes ......................................................... 0.68ms DONE
  views ......................................................... 10.20ms DONE
                                           php artisan route:clear && php artisan optimize:clear
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan route:clear && php artisan optimize:clear
   INFO  Route cache cleared successfully.


   INFO  Clearing cached bootstrap files.

  config ......................................................... 0.98ms DONE
  cache ......................................................... 11.58ms DONE
  compiled ....................................................... 1.08ms DONE
  events ......................................................... 0.54ms DONE
  routes ......................................................... 0.44ms DONE
  views .......................................................... 5.41ms DONE

[anekakeb@srv laravel.anekakebutuhan.com]$ which php
/usr/local/bin/php
[anekakeb@srv laravel.anekakebutuhan.com]$ crontab -e
/usr/bin/crontab.cagefs: installing new crontab
[anekakeb@srv laravel.anekakebutuhan.com]$ crontab -e
/usr/bin/crontab.cagefs: installing new crontab
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Nothing to migrate.

[anekakeb@srv laravel.anekakebutuhan.com]$ crontab -e
/usr/bin/crontab.cagefs: installing new crophp artisan make:migration create_products_table
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan make:migration create_products_table
   INFO  Migration [database/migrations/2026_06_06_130008_create_products_table.php] created successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Running migrations.

  2026_06_06_130008_create_products_table ........................ 6.42ms DONE

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan make:model Product -a

   INFO  Model [app/Models/Product.php] created successfully.

   INFO  Factory [database/factories/ProductFactory.php] created successfully.

   INFO  Migration [database/migrations/2026_06_06_130419_create_products_table.php] created successfully.

   INFO  Seeder [database/seeders/ProductSeeder.php] created successfully.

   INFO  Request [app/Http/Requests/StoreProductRequest.php] created successfully.

   INFO  Request [app/Http/Requests/UpdateProductRequest.php] created successfully.

   INFO  Controller [app/Http/Controllers/ProductController.php] created successfully.

   INFO  Policy [app/Policies/ProductPolicy.php] created successfully.
                                           php artisan make:migration create_dashboard_access_logs_table
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan make:migration create_dashboard_access_logs_table
   INFO  Migration [database/migrations/2026_06_06_131423_create_dashboard_access_logs_table.php] created successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Running migrations.

  2026_06_06_130419_create_products_table ........................ 4.30ms FAIL

   Illuminate\Database\QueryException

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'products' already exists (Connection: mysql, Host: localhost, Port: 3306, Database: anekakeb_laravel, SQL: create table `products` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:841
    837▕             $exceptionType = ($isUniqueConstraintError = $this->isUniqueConstraintError($e))
    838▕                 ? UniqueConstraintViolationException::class
    839▕                 : QueryException::class;
    840▕
  ➜ 841▕             $exception = new $exceptionType(
    842▕                 $this->getNameWithReadWriteType(),
    843▕                 $query,
    844▕                 $this->prepareBindings($bindings),
    845▕                 $e,

      +9 vendor frames

  10  database/migrations/2026_06_06_130419_create_products_table.php:14
      Illuminate\Support\Facades\Facade::__callStatic()
      +26 vendor frames

  37  artisan:16
      Illuminate\Foundation\Application::handleCommand()

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate:fresh


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘


  Dropping all tables ........................................... 12.66ms DONE

   INFO  Preparing database.

  Creating migration table ....................................... 4.77ms DONE

   INFO  Running migrations.

  0001_01_01_000000_create_users_table ........................... 9.21ms DONE
  0001_01_01_000001_create_cache_table .......................... 22.59ms DONE
  0001_01_01_000002_create_jobs_table ............................ 8.60ms DONE
  2026_05_12_034805_create_posts_table ........................... 2.33ms DONE
  2026_05_12_093418_create_categories_table ...................... 3.80ms DONE
  2026_05_12_093504_add_category_id_to_posts_table ............... 9.69ms DONE
  2026_05_12_230431_create_personal_access_tokens_table .......... 9.42ms DONE
  2026_06_06_130008_create_products_table ........................ 9.54ms DONE
  2026_06_06_130419_create_products_table ........................ 1.00ms FAIL

   Illuminate\Database\QueryException

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'products' already exists (Connection: mysql, Host: localhost, Port: 3306, Database: anekakeb_laravel, SQL: create table `products` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:841
    837▕             $exceptionType = ($isUniqueConstraintError = $this->isUniqueConstraintError($e))
    838▕                 ? UniqueConstraintViolationException::class
    839▕                 : QueryException::class;
    840▕
  ➜ 841▕             $exception = new $exceptionType(
    842▕                 $this->getNameWithReadWriteType(),
    843▕                 $query,
    844▕                 $this->prepareBindings($bindings),
    845▕                 $e,

      +9 vendor frames

  10  database/migrations/2026_06_06_130419_create_products_table.php:14
      Illuminate\Support\Facades\Facade::__callStatic()
      +37 vendor frames

  48  artisan:16
      Illuminate\Foundation\Application::handleCommand()

[anekakeb@srv laravel.anekakebutuhan.com]$
[anekakeb@srv laravel.anekakebutuhan.com]$
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate --force

   INFO  Running migrations.

  2026_06_06_130419_create_products_table ........................ 4.39ms FAIL

   Illuminate\Database\QueryException

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'products' already exists (Connection: mysql, Host: localhost, Port: 3306, Database: anekakeb_laravel, SQL: create table `products` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:841
    837▕             $exceptionType = ($isUniqueConstraintError = $this->isUniqueConstraintError($e))
    838▕                 ? UniqueConstraintViolationException::class
    839▕                 : QueryException::class;
    840▕
  ➜ 841▕             $exception = new $exceptionType(
    842▕                 $this->getNameWithReadWriteType(),
    843▕                 $query,
    844▕                 $this->prepareBindings($bindings),
    845▕                 $e,

      +9 vendor frames

  10  database/migrations/2026_06_06_130419_create_products_table.php:14
      Illuminate\Support\Facades\Facade::__callStatic()
      +26 vendor frames

  37  artisan:16
      Illuminate\Foundation\Application::handleCommand()

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan db:wipe


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Dropped all tables successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Preparing database.

  Creating migration table ....................................... 5.21ms DONE

   INFO  Running migrations.

  0001_01_01_000000_create_users_table ........................... 7.82ms DONE
  0001_01_01_000001_create_cache_table ........................... 4.74ms DONE
  0001_01_01_000002_create_jobs_table ............................ 6.12ms DONE
  2026_05_12_034805_create_posts_table ........................... 1.00ms DONE
  2026_05_12_093418_create_categories_table ...................... 5.19ms DONE
  2026_05_12_093504_add_category_id_to_posts_table ............... 3.92ms DONE
  2026_05_12_230431_create_personal_access_tokens_table ......... 27.41ms DONE
  2026_06_06_130008_create_products_table ....................... 20.28ms DONE
  2026_06_06_130419_create_products_table ........................ 1.08ms FAIL

   Illuminate\Database\QueryException

  SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'products' already exists (Connection: mysql, Host: localhost, Port: 3306, Database: anekakeb_laravel, SQL: create table `products` (`id` bigint unsigned not null auto_increment primary key, `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')

  at vendor/laravel/framework/src/Illuminate/Database/Connection.php:841
    837▕             $exceptionType = ($isUniqueConstraintError = $this->isUniqueConstraintError($e))
    838▕                 ? UniqueConstraintViolationException::class
    839▕                 : QueryException::class;
    840▕
  ➜ 841▕             $exception = new $exceptionType(
    842▕                 $this->getNameWithReadWriteType(),
    843▕                 $query,
    844▕                 $this->prepareBindings($bindings),
    845▕                 $e,

      +9 vendor frames

  10  database/migrations/2026_06_06_130419_create_products_table.php:14
      Illuminate\Support\Facades\Facade::__callStatic()
      +26 vendor frames

  37  artisan:16
      Illuminate\Foundation\Application::handleCommand()

[anekakeb@srv laravel.anekakebutuhan.com]$ ls -la database/migrations/
total 44
drwxr-xr-x 2 anekakeb anekakeb 4096 Jun  6 13:16 .
drwxr-xr-x 5 anekakeb anekakeb   97 May 12 01:28 ..
-rw-r--r-- 1 anekakeb anekakeb 1473 Apr 30 11:32 0001_01_01_000000_create_users_table.php
-rw-r--r-- 1 anekakeb anekakeb  873 Apr 30 11:32 0001_01_01_000001_create_cache_table.php
-rw-r--r-- 1 anekakeb anekakeb 1813 Apr 30 11:32 0001_01_01_000002_create_jobs_table.php
-rw-r--r-- 1 anekakeb anekakeb  628 May 12 03:48 2026_05_12_034805_create_posts_table.php
-rw-r--r-- 1 anekakeb anekakeb  582 May 12 09:35 2026_05_12_093418_create_categories_table.php
-rw-r--r-- 1 anekakeb anekakeb  596 May 12 09:36 2026_05_12_093504_add_category_id_to_posts_table.php
-rw-r--r-- 1 anekakeb anekakeb  863 May 12 23:04 2026_05_12_230431_create_personal_access_tokens_table.php
-rw-r--r-- 1 anekakeb anekakeb  781 Jun  6 13:03 2026_06_06_130008_create_products_table.php
-rw-r--r-- 1 anekakeb anekakeb  533 Jun  6 13:04 2026_06_06_130419_create_products_table.php
-rw-r--r-- 1 anekakeb anekakeb  938 Jun  6 rm database/migrations/2026_06_06_130419_create_products_table.php
[anekakeb@srv laravel.anekakebutuhan.com]$ rm database/migrations/2026_06_06_130419_create_products_table.php              ls -la database/
migrations/rv laravel.anekakebutuhan.com]$ rm database/migrations/2026_06_06_130419_create_products_table.php
total 40
drwxr-xr-x 2 anekakeb anekakeb 4096 Jun  6 13:23 .
drwxr-xr-x 5 anekakeb anekakeb   97 May 12 01:28 ..
-rw-r--r-- 1 anekakeb anekakeb 1473 Apr 30 11:32 0001_01_01_000000_create_users_table.php
-rw-r--r-- 1 anekakeb anekakeb  873 Apr 30 11:32 0001_01_01_000001_create_cache_table.php
-rw-r--r-- 1 anekakeb anekakeb 1813 Apr 30 11:32 0001_01_01_000002_create_jobs_table.php
-rw-r--r-- 1 anekakeb anekakeb  628 May 12 03:48 2026_05_12_034805_create_posts_table.php
-rw-r--r-- 1 anekakeb anekakeb  582 May 12 09:35 2026_05_12_093418_create_categories_table.php
-rw-r--r-- 1 anekakeb anekakeb  596 May 12 09:36 2026_05_12_093504_add_category_id_to_posts_table.php
-rw-r--r-- 1 anekakeb anekakeb  863 May 12 23:04 2026_05_12_230431_create_personal_access_tokens_table.php
-rw-r--r-- 1 anekakeb anekakeb  781 Jun  6 13:03 2026_06_06_130008_create_products_table.php
-rw-r--r-- 1 anekakeb anekakeb  938 Jun  6 13:16 2026_06_06_131423_create_dashboard_access_logs_table.php
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan db:wipe


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Dropped all tables successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan migrate


                           APPLICATION IN PRODUCTION.


 ┌ Are you sure you want to run this command? ──────────────────┐
 │ Yes                                                          │
 └──────────────────────────────────────────────────────────────┘

   INFO  Preparing database.

  Creating migration table ...................................... 47.24ms DONE

   INFO  Running migrations.

  0001_01_01_000000_create_users_table .......................... 54.38ms DONE
  0001_01_01_000001_create_cache_table .......................... 71.24ms DONE
  0001_01_01_000002_create_jobs_table ........................... 92.09ms DONE
  2026_05_12_034805_create_posts_table ........................... 2.61ms DONE
  2026_05_12_093418_create_categories_table ...................... 5.40ms DONE
  2026_05_12_093504_add_category_id_to_posts_table .............. 13.83ms DONE
  2026_05_12_230431_create_personal_access_tokens_table ......... 15.15ms DONE
  2026_06_06_130008_create_products_table ........................ 2.70ms DONE
  2026_06_06_131423_create_dashboard_access_logs_table ........... 4.08ms DONE
                                           php artisan make_middleware TrackDashboardAccess
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan make_middleware TrackDashboardAccess
   ERROR  Command "make_middleware" is not defined. Did you mean one of these?

  ⇂ make:job-middleware
  ⇂ make:middleware
                                           php artisan make:middleware TrackDashboardAccess
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan make:middleware TrackDashboardAccess
   INFO  Middleware [app/Http/Middleware/TrackDashboardAccess.php] created successfully.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan optimize:clear

   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.33ms DONE
  cache ......................................................... 12.88ms DONE
  compiled ....................................................... 1.22ms DONE
  events ......................................................... 0.64ms DONE
  routes ......................................................... 0.64ms DONE
  views .......................................................... 7.05ms DONE
                                           php artisan db:table dashboard_access_logs
[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan db:table dashboard_access_logs
  anekakeb_laravel.dashboard_access_logs .....................................
  Columns .................................................................. 8
  Size .............................................................. 16.00 KB
  Engine .............................................................. InnoDB
  Collation ............................................... utf8mb4_unicode_ci

  Column ................................................................ Type
  id bigint, autoincrement ............................... bigint(20) unsigned
  user_name varchar, nullable, utf8mb4_unicode_ci .......... NULL varchar(255)
  user_email varchar, nullable, utf8mb4_unicode_ci ......... NULL varchar(255)
  ip_address varchar, utf8mb4_unicode_ci ........................ varchar(255)
  user_agent varchar, utf8mb4_unicode_ci ........................ varchar(255)
  url_accessed varchar, utf8mb4_unicode_ci ...................... varchar(255)
  created_at timestamp, nullable .............................. NULL timestamp
  updated_at timestamp, nullable .............................. NULL timestamp

  Index ......................................................................
  primary id .................................................. btree, primary

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan db:table dashboard_access_logs

  anekakeb_laravel.dashboard_access_logs .....................................
  Columns .................................................................. 8
  Size .............................................................. 16.00 KB
  Engine .............................................................. InnoDB
  Collation ............................................... utf8mb4_unicode_ci

  Column ................................................................ Type
  id bigint, autoincrement ............................... bigint(20) unsigned
  user_name varchar, nullable, utf8mb4_unicode_ci .......... NULL varchar(255)
  user_email varchar, nullable, utf8mb4_unicode_ci ......... NULL varchar(255)
  ip_address varchar, utf8mb4_unicode_ci ........................ varchar(255)
  user_agent varchar, utf8mb4_unicode_ci ........................ varchar(255)
  url_accessed varchar, utf8mb4_unicode_ci ...................... varchar(255)
  created_at timestamp, nullable .............................. NULL timestamp
  updated_at timestamp, nullable .............................. NULL timestamp

  Index ......................................................................
  primary id .................................................. btree, primary

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan db:table dashboard_access_logs

  anekakeb_laravel.dashboard_access_logs .....................................
  Columns .................................................................. 8
  Size .............................................................. 16.00 KB
  Engine .............................................................. InnoDB
  Collation ............................................... utf8mb4_unicode_ci

  Column ................................................................ Type
  id bigint, autoincrement ............................... bigint(20) unsigned
  user_name varchar, nullable, utf8mb4_unicode_ci .......... NULL varchar(255)
  user_email varchar, nullable, utf8mb4_unicode_ci ......... NULL varchar(255)
  ip_address varchar, utf8mb4_unicode_ci ........................ varchar(255)
  user_agent varchar, utf8mb4_unicode_ci ........................ varchar(255)
  url_accessed varchar, utf8mb4_unicode_ci ...................... varchar(255)
  created_at timestamp, nullable .............................. NULL timestamp
  updated_at timestamp, nullable .............................. NULL timestamp

  Index ......................................................................
  primary id .................................................. btree, primary

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan tinker
Psy Shell v0.12.22 (PHP 8.3.30 — cli) by Justin Hileman
New PHP manual is available (latest: 3.0.7). Update with `doc --update-manual`

> DB::table('dashboard_access_logs')->get();

= Illuminate\Support\Collection {#8154
    all: [
      {#8153
        +"id": "1",
        +"user_name": "PT PARAMA NUSA PERSADA",
        +"user_email": "parama.peplink@gmail.com",
        +"ip_address": "180.243.15.123",
        +"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0",
        +"url_accessed": "https://laravel.anekakebutuhan.com/dashboard",
        +"created_at": "2026-06-06 13:38:54",
        +"updated_at": "2026-06-06 13:38:54",
      },
    ],
  }

> exit

   INFO  Goodbye.

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan optimize:clear

   Symfony\Component\ErrorHandler\Error\FatalError

  Cannot use Illuminate\Support\Facades\Schedule as Schedule because the name is already in use

  at routes/console.php:23
     19▕         $message->to('email_anda@gmail.com')->subject('Laporan Pengunjung Harian');
     20▕     });
     21▕ })->daily();
     22▕
  ➜  23▕ use Illuminate\Support\Facades\Schedule;
     24▕ use Illuminate\Support\Facades\DB;
     25▕ use Illuminate\Support\Facades\Mail;
     26▕
     27▕ // Mengirim email rangkuman log akses setiap hari pukul 23:59 malam


   Whoops\Exception\ErrorException

  Cannot use Illuminate\Support\Facades\Schedule as Schedule because the name is already in use

  at routes/console.php:23
     19▕         $message->to('email_anda@gmail.com')->subject('Laporan Pengunjung Harian');
     20▕     });
     21▕ })->daily();
     22▕
  ➜  23▕ use Illuminate\Support\Facades\Schedule;
     24▕ use Illuminate\Support\Facades\DB;
     25▕ use Illuminate\Support\Facades\Mail;
     26▕
     27▕ // Mengirim email rangkuman log akses setiap hari pukul 23:59 malam

      +1 vendor frames

  2   [internal]:0
      Whoops\Run::handleShutdown()

[anekakeb@srv laravel.anekakebutuhan.com]$ php artisan optimize:clear

   INFO  Clearing cached bootstrap files.

  config ......................................................... 1.52ms DONE
  cache ......................................................... 16.99ms DONE
  compiled ....................................................... 1.31ms DONE
  events ......................................................... 0.75ms DONE
  routes ......................................................... 0.67ms DONE
  views .......................................................... 7.42ms DONE