<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://orourke.tv/web/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>orourke.tv - code:laravel</title>
        <description>every banana has 5 sides</description>
        <link>http://orourke.tv/web/</link>
        <lastBuildDate>Sat, 18 Apr 2026 15:00:04 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>http://orourke.tv/web/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>orourke.tv</title>
            <link>http://orourke.tv/web/</link>
        </image>
        <item>
            <title>audit</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:audit&amp;rev=1588182351&amp;do=diff</link>
            <description>Laravel Audit

	* &lt;https://docs.spatie.be/laravel-activitylog/v3/advanced-usage/logging-model-events/&gt;

Install


composer require spatie/laravel-activitylog
php artisan vendor:publish --provider=&quot;Spatie\Activitylog\ActivitylogServiceProvider&quot; --tag=&quot;migrations&quot;
php artisan vendor:publish --provider=&quot;Spatie\Activitylog\ActivitylogServiceProvider&quot; --tag=&quot;config&quot;
php artisan config:cache
php artisan migrate</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 29 Apr 2020 17:45:51 +0000</pubDate>
        </item>
        <item>
            <title>bladecode-snippets</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:bladecode-snippets&amp;rev=1587718636&amp;do=diff</link>
            <description>Blade Code Snippets

Paginate

Pass in url Variables on paginate.

{{ $users-&gt;appends(request()-&gt;input())-&gt;links() }}</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 24 Apr 2020 08:57:16 +0000</pubDate>
        </item>
        <item>
            <title>clear-cache</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:clear-cache&amp;rev=1587653147&amp;do=diff</link>
            <description>Clearing Cache in Laravel


php artisan cache:clear
php artisan route:clear
php artisan config:clear 
php artisan view:clear</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 23 Apr 2020 14:45:47 +0000</pubDate>
        </item>
        <item>
            <title>code-snippets</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:code-snippets&amp;rev=1611685351&amp;do=diff</link>
            <description>Code Snippets

Display logged in User&#039;s name


use Illuminate\Support\Facades\Auth;
$name=Auth::user()-&gt;name;
dd($name);


How to check if Logged in user is a member of a specific LDAP group


use Illuminate\Support\Facades\Auth;
use LdapRecord\Models\ActiveDirectory\Group;

$user = Auth::user();
$group = Group::find(&#039;CN=IVRAdmin,CN=Users,DC=lab2,DC=purplepi,DC=ie&#039;);

if ($user-&gt;ldap-&gt;groups()-&gt;recursive()-&gt;exists($group)) {
	echo (($user-&gt;ldap-&gt;cn[0]) . &quot; is a member of the group &quot;) . $group -&gt;…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 26 Jan 2021 18:22:31 +0000</pubDate>
        </item>
        <item>
            <title>config-snippets</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:config-snippets&amp;rev=1587639294&amp;do=diff</link>
            <description>Config Snippets

Config/App.php

Timezone

The default Timezone if &#039;UTC&#039;
You can change the timezone to your relevant timezone.
PHP Timeline [&lt;https://www.w3schools.com/php/php_ref_timezones.asp#europe&gt;|here]]


    &#039;timezone&#039; =&gt; &#039;Europe/Dublin&#039;,</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Thu, 23 Apr 2020 10:54:54 +0000</pubDate>
        </item>
        <item>
            <title>eloquent</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:eloquent&amp;rev=1586973373&amp;do=diff</link>
            <description>Laravel Eloquent

Soft Deletes

Reference

Soft Deletes adds the column deleted_at to your table.
It can be added by updating the migration config.

Example config for User table below:


&lt;?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create(&#039;users&#039;, f…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 15 Apr 2020 17:56:13 +0000</pubDate>
        </item>
        <item>
            <title>email</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:email&amp;rev=1586626593&amp;do=diff</link>
            <description>Laravel - SMTP Setup

This is required to be setup for email verification and/or password reset emails.

Example env config file settings for SMTP

Obviously set your own SMTP details (and make sure the From address exists - as your mail server can reject it if not)</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 11 Apr 2020 17:36:33 +0000</pubDate>
        </item>
        <item>
            <title>gettingstarted</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:gettingstarted&amp;rev=1587232076&amp;do=diff</link>
            <description>Laravel - Getting Started

Installing

Packages

	* Install &amp; Config PHP
	* Install Composer - &lt;https://getcomposer.org/download/&gt;
	* Install Node (needed for NPM (Node Package Manager) - &lt;https://nodejs.org/en/download/&gt;

Install Laravel

composer global require laravel/installer

Create a new Project

laravel new &lt;blog&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 18 Apr 2020 17:47:56 +0000</pubDate>
        </item>
        <item>
            <title>iis</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:iis&amp;rev=1621106546&amp;do=diff</link>
            <description>Laravel on IIS

Note:
PHP for Windows comes in two flavors, Non Thread Safe (NTS) and Thread Save (TS). If you are using PHP as a FastCGI or CGI executable you need to use the NTS flavor. This is the only flavor you should be using for IIS and NginX. It’s also the preferred way to set up PHP on Apache.</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 15 May 2021 19:22:26 +0000</pubDate>
        </item>
        <item>
            <title>ldap</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:ldap&amp;rev=1587894366&amp;do=diff</link>
            <description>Laravel AD LDAP

Reference: 


	* &lt;https://ldaprecord.com/docs/laravel/quickstart/&gt;
	* &lt;https://github.com/DirectoryTree/LdapRecord-Laravel&gt;

My quick Start Guide

	* Enable PHP for LDAP via INI by enabling the ldap extension:

extension=ldap

	* Install LDAP Record (installs in vendor\directorytree folder)

composer require directorytree/ldaprecord-laravel</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 26 Apr 2020 09:46:06 +0000</pubDate>
        </item>
        <item>
            <title>scheduler</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:scheduler&amp;rev=1587742573&amp;do=diff</link>
            <description>Laravel - Scheduler

	* &lt;https://laravel.com/docs/7.x/scheduling&gt;
	* &lt;https://quantizd.com/how-to-use-laravel-task-scheduler-on-windows-10/&gt;

App/Console/Kernel.php


    protected function schedule(Schedule $schedule)
    {
        // Import LDAP users hourly.
        $schedule-&gt;command(&#039;ldap:import ldap&#039;, [
            &#039;--no-interaction&#039;,
            &#039;--restore&#039;, // This will restore users which were soft deleted and LDAP now says they are enabled
            &#039;--delete&#039;, //This will soft delet…</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Fri, 24 Apr 2020 15:36:13 +0000</pubDate>
        </item>
        <item>
            <title>templates</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:templates&amp;rev=1610292827&amp;do=diff</link>
            <description>Laravel Templates

Laravel with &#039;SB Admin&#039; Bootstrap

	* &lt;https://github.com/aleckrh/laravel-sb-admin-2&gt;
	* Start BootStrap SB Admin 2

Creative Time&#039;s Material Dashboard

Github link: &lt;https://github.com/creativetimofficial/material-dashboard-laravel&gt;


Install

Create a new laravel project with Authentication

	* laravel new dashboard --auth

Download Template

	* composer require laravel-frontend-presets/material-dashboard</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 10 Jan 2021 15:33:47 +0000</pubDate>
        </item>
        <item>
            <title>updating</title>
            <link>http://orourke.tv/web/doku.php?id=code:laravel:updating&amp;rev=1587371141&amp;do=diff</link>
            <description>Laravel - Updating

	* Install Composer - &lt;https://getcomposer.org/download/&gt;
	* Latest Supported PHP 
	* 
php composer.phar update

 or 

	* 
composer update 


Version check

Laravel Version Check


php artisan --version


Installed Packages Version Check


composer show -i</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 20 Apr 2020 08:25:41 +0000</pubDate>
        </item>
    </channel>
</rss>
