<commit_before><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{

  public function __construct()
  {
      $this->middleware('auth');
      $this->middleware('language');
  }

    public function index()
    {
      return view('admin.welcome');
    }

    public function connector()
    {
      $url = \Config::get("suitecrm.url");
      $username = \Config::get("suitecrm.username");
      return view('admin.connector', compact('url', 'username'));
    }


    public function store_connector(Request $request, ConnectorValidator $input)
    {
      // This needs to be written into a middleware.
       \Config::set('suitecrm.url', $request->get('hostname'));
       \Config::set('suitecrm.url', $request->get('username'));
       \Config::set('suitecrm.password', $request->get('password'));
    }
}<commit_msg>Added mail settings<commit_after><?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

class AdminController extends Controller
{

  public function __construct()
  {
      $this->middleware('auth');
      $this->middleware('language');
  }

    public function index()
    {
      return view('admin.welcome');
    }

    public function connector()
    {
      $url = \Config::get("suitecrm.url");
      $username = \Config::get("suitecrm.username");
      return view('admin.connector', compact('url', 'username'));
    }

    public function store_connector(Request $request, ConnectorValidator $input)
    {
      // This needs to be written into a middleware.
       \Config::set('suitecrm.url', $request->get('hostname'));
       \Config::set('suitecrm.url', $request->get('username'));
       \Config::set('suitecrm.password', $request->get('password'));
    }

    public function mail()
    {
      return view('admin.list_mail');
    }
}
{'fraction_non_alphanumeric': 0.15861718352821555, 'fraction_numerical': 0.0, 'mean_word_length': 3.402684563758389, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4655877', 'n_tokens_mistral': 580, 'n_tokens_neox': 580, 'n_words': 115}