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
#!/bin/bash | |
if [[ "$1" != "" ]]; then | |
pdf_file="$1" | |
shift | |
rm /tmp/pdf_file.txt >> /dev/null 2>&1 | |
if [[ ! -f $(which pdftotext) ]]; then | |
echo "You do not have xpdf installed, please install it to convert pdfs to text..." | |
exit 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
<?php | |
namespace App\Models\Traits; | |
use DB; | |
/** | |
* This trait is to work around a problem where a limit on an Eloquent | |
* relation by default applies to all queried models in total. | |
* |