linux find & replace
Linux2020. 7. 31. 14:27
728x90
https://linuxize.com/post/how-to-use-sed-to-find-and-replace-string-in-files/
sed -i 's/SEARCH_REGEX/REPLACEMENT/g' INPUTFILE
sed -i 's/Date(2013, 1, 1)/Date(2020, 1, 1)/g' *.php
sed -i 's/Date(2020, 6, 25)/Date(2025, 12, 31)/g' *.php
pagination 에서의 페이지별 행 번호
Laravel2020. 7. 23. 18:06
728x90
https://stackoverflow.com/questions/18024237/increment-row-number-with-laravel-pagination
@foreach ($telephone as $key=> $whatever)
<td>{{ $key+ $telephone->firstItem() }}</td>
@endforeach