Skip to content

Tag: laravel-5.1

Laravel custom helper – undefined index SERVER_NAME

In Laravel 5.1, I created a custom helper file: custom.php which I load in composer.json: and it contains this method: It works as expected, but every time I do php artisan commands, I get a call stack and this message: Why is this so? The method returns the correct value when run from within my Laravel app. …

find in set in laravel ? example

I am new in laravel. My query is i need to find out value from comma separated field. Here is my table: tags_value ╔════╦══════════════╗ ║ id ║ tags ║ ╠════╬══════════════╣ ║ 1 ║ css,html,…